KL Rahul reached a century in the first innings of the third Test, then was caught out moments later from Shoaib Bashir.