The U.N. food agency says more than 300 Afghans have died in flash floods that also destroyed more than 1,000 houses in the northern province of Baghlan.