Naseem and Abrar picked up three wickets, while Rizwan and Agha struck fifties as Pakistan got over the line by two wickets in a tense finish