Afghanistan proved they'll be no walkovers at the Cricket World Cup, beating Pakistan by three wickets in Bristol.