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.
Wahab Riaz, Faheem Ashraf included in 20-man shortlist for England Tests
The flair, the calmness and the promises: Pakistan's rhetoric in the lead up to first Test
'We maintained a reasonable run rate considering the conditions' - Shan Masood
Sohail Khan bags five wickets as Pakistan's leading batsmen flounder
'Plans underway to stage remaining PSL matches this year' - PCB
Babar Azam fluency tames sloppy England on rain-curtailed opening day
Broad takes 500 Test wickets, Woakes bags five as England reclaim Wisden Trophy
Pakistan grapple with selection predicament as fired up England eye strong start
Team Green put on improved batting display after Naseem Shah shines again
Haris Rauf set to join Pakistan squad in England after returning two negative tests