Indian spin bowler Anil Kumble took five wickets in Pakistan 's second innings as the visitors reached 162-7 before bad light ended play .