The hosts, who resumed their first innings at the overnight total of 236 for 4, were confronted by steady spin bowling by the Pakistanis on a good pitch at the Sheikh Abu Naser stadium.
Yasir went into the break with three for 84, while off-spinner Mohammad Hafeez and left-armer Zulfiqar Babar chipped in with two wickets each.
Bangladesh lost the early wicket of star all-rounder Shakib Al Hasan, who was smartly caught at leg-slip by Asad Shafiq off Babar for 25.
Mushfiqur Rahim (32) and Soumya Sarkar (33) put on 62 for the sixth wicket before Pakistan hit back with three wickets in the space of seven runs.
Sarkar was dismissed by another good catch by Asad in the covers off Hafeez before Yasir had Rahim caught in the covers and bowled Taijul Islam round his legs.
At lunch, Shuvagata Hom was unbeaten on 11 and Mohammad Shahid was on six.
Bangladesh had swept the preceding one-day series 3-0 and also defeated Pakistan for the first time in a Twenty20 international.– AFP
Original source: Pakistan grab four Bangladesh wickets