Asif Ali scored an unbeaten 25 runs off just seven deliveries, smashing four sixes in the 19th over to clinch the game for Pakistan.
Mohammad Nabi scored 35 runs off 32 deliveries and Gulbadin Naib made 35 runs off 25 balls to take Afghanistan to a good total.