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.
Pak vs SA - Pakistan vs South Africa Live Score, Streaming and TV Channels Broadcast Information
PSL 2019 - PSL Schedule with all PSL 4 matches and schedule for all franchises
Imam, Hafeez set-up five wicket win for Pakistan
There is undue pressure on Imam: Wasim Akram
Wade blasts Cricket Australia over Test snub
Wade, Short storm past Adelaide in ten-wicket thumping
Lahore Qalandars squad 2019 | LQ Team Players List
Karachi Kings 2019 squad | KK Team Players List
Islamabad United Squad 2019 | IU Players list
Quetta Gladiators squad 2019 | QG Team Players List