The five-wicket win was Afghanistan’s first of the tournament, and kept Rashid Khan and Co. alive, if only technically, in the race for a Super Eights spot.