Shaheen Shah Afridi (2L) celebrates with teammates after the dismissal of Najmul Hossain Shanto during the third day of the first Test match in Chittagong on Sunday. AFP
Bangladesh had secured a 44-run lead after bowling out Pakistan for 286, thanks largely to left-arm spinner Taijul Islam, who returned figures of 7-116.
Instead, the home side ended the day by extending its lead to 83 runs but has just six wickets remaining. Mushfiqur Rahim, who made 91 in the first innings, was batting on 12 and Yasir Ali on 8 after surviving several close calls.
"I think we can’t take it (losing four wickets) as a disappointment. This is the nature of cricket,” Taijul said. "Nobody wants to get out voluntarily. We came back after being four wickets down in the first innings. We hope to do the same in this innings too.”
Taijul Islam (L) celebrates after the dismissal of Abid Ali during the third day of the first Test match. AFP
Despite the first-innings deficit, Pakistan fought back through its fast bowlers — Shaheen Shah Afridi and Hasan Ali — who used the short ball to precision, leaving Bangladesh in a potentially precarious position.
Afridi cracked the game open, striking twice in his third over. He trapped Shadman leg-before for 1 with a ball that swung sharply and then two balls later had Najmul Hossain caught at first slip for a duck with a short ball.
Abid Ali celebrates after scoring a century during the third day of the first Test match. AFP
His short ball again worked for him when opener Saif Hasan gave the return catch and was dismissed for 14. Ali also got into the act, dismissing captain Mominul Haque for a duck with a leading edge, leaving Bangladesh on 25-4.
"We will try our level best to bowl them out quickly and hopefully (the) spinners will get into action tomorrow as well,” Afridi said. "Our target is to keep the target under 200.”
Earlier, Taijul pegged back the Pakistan innings after the visitors began the day on 145 for no loss. Opener Abid Ali top-scored with 133 off 282, hitting 12 fours and two sixes.
Taijul struck in the first over of the day, dismissing Abdullah Shafique and Azhar Ali via review with consecutive deliveries. Shafique couldn’t add any runs to his overnight total of 52.
Abid, who started the day on 93, flicked Taijul past square leg for a couple to reach his fourth century off 209 balls.
Skipper Babar Azam appeared to be in control before offspinner Mehidy Hasan’s (1-68) quicker delivery rattled his stump for 10.
Taijul used his flight and variation well to curb the aggression of Pakistan's batsmen and reaped the rewards again when he spun one sharply to dismiss Fawad Alam (8), also via review.
He also got the key wicket of Abid Ali, who had used his feet nicely against the Bangladeshi spinners, and then dismissed Hasan Ali for his ninth and second consecutive five-for.
Fahim Ashraf kept Pakistan in the game, guiding the lower order before he was dismissed as the last batsman for 38.
The visitors chose to bat and reached 161-2 at tea on the first day, with skipper Azam batting on 60 alongside Azhar Ali, 36 not out, at the break. The duo put 91 runs in their unbroken third wicket stand after Bangladesh left-arm spinner Taijul Islam removed both the openers in the morning session.
Bangladesh were bowled out for 168 in their second innings after resuming the day on 126-6 as Pakistan's pace and spin attack was too hot to handle despite a flat Rawalpindi pitch.
The duo led a late reverse-swing charge to close the second session as Australia lost their last five wickets for 71 runs having reached a commanding 320-5 at lunch. Naseem finished with figures of 4-58 and Shaheen 4-79.
"Actually, that's a good sign for Pakistan cricket — the top cricketers are here. They perform really well, Hasan and Shan, and everyone performs really well — Haris — so it's good for Pakistan cricket as well."
The rookie off-spinner rattled the Indian reply to England's first innings of 353 in a marathon spell of 31 overs unchanged spread over three sessions in Ranchi.
Iga Swiatek blamed fatigue for her semi-final defeat to Anna Kalinskaya in the Dubai semi-finals on Friday, admitting: "I didn't have power anymore" to up her level during the match.
Joe Root made an unbeaten 122 as he lifted England from a precarious 112-5 to 353 at stumps after they elected to bat first in the fourth Test in Ranchi.