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.
South Africa name depleted squad for Pakistan T20Is owing to IPL constraints
PCB decides to resume PSL 2021 in June
'It was a joint decision' - Silverwood on Archer's omission from ODI side
Bravo century, Pollard blitz lift West Indies to series whitewash over Sri Lanka
One member of Pakistan's touring party tests positive for coronavirus
Sharjeel Khan returns to T20I side, Shahnawaz Dahani handed maiden Test call-up
Pak vs SA Live Streaming and TV Channels Broadcast Information
Play and Win with 1st Cricingif Play League
PSL 2019 - PSL Schedule with all PSL 4 Matches and Schedule for all Franchises
All-round Pakistan hand South Africa first-ever Pink Day defeat