The sides will meet again on Friday to decide the series.
The hosts, beaten 2-0 in the recent T20 series, were chasing a target of 228 to win but were bowled out for 198
Afghanistan had already taken an unassailable 2-0 lead in the three-match series against Ireland
Hazratullah Zazai top scored with 82 from just 54 balls and was ably supported by captain Asghar Afghan's 37.
The tourists posted 160-7 batting first after rain had reduced the match to 18 overs a side.
Hasan Ali returns to Test side, Pakistan name nine uncapped players for South Africa series
Ben Dunk leaves Melbourne Stars midway through Big Bash League
PSL 2021: How the squads stack up after the draft
Injury-afflicted Rumman Raees roped in as bowling consultant for Islamabad United
Heinrich Klaasen named captain of second-string South Africa squad for Pakistan T20Is
Umar Gul appointed Quetta Gladiators bowling coach
'Our security guys have said it is safe' - Boucher excited about historic Pakistan tour
IPL 2021: KXIP release Maxwell, Mujeeb; Finch, Moeen not retained by RCB
'Hope the objective of Cricket Committee meeting is not to grill someone' - Misbah-ul-Haq
'We are engaging in match scenario practice to help the youngsters prepare' - Azhar Ali