Rescue workers in Afghanistan searched on Wednesday for survivors of flash floods that killed more than 70 people and destroyed hundreds of houses in a city north of the capital, officials said.

Troops pulled dozens from the rubble of collapsed buildings in Charikar, capital of Parwan province, after it was hit by heavy rains overnight, but officials and witnesses said many children were among the dead.

Mohamed Qasim, a 45-year-old farmer from the city, said 11 members of his family were killed in the floods.

Piles of rocks from destroyed buildings were scattered across the city, with roads blocked by mud and debris and cars flipped on their sides.

“The figures we have collected from hospitals show that 72 people have died and over 100 are injured,” said Ministry of Disaster Management spokesman Tamim Azimi.

Waheeda Shahkar, the spokeswoman for the Parwan governor, confirmed the toll, adding that more than 500 houses had been destroyed.

In parts of the city, anxious residents gathered to see if relatives would be pulled from the wreckages by rescue workers using heavy machinery.

Many people stood on rooftops as the rain continued to lash the city, holding on to their salvaged belongings.

“I was alone when the flood-hit. I grabbed the window and was holding it for two hours until the neighbours came to rescue me. I lost everything … my jewellery, money and property,” said 70-year-old Hamida.

Flash floods were also reported in other provinces – including Nangarhar, Panjshir, Wardak, Loghar, Paktika and Kapisa – but there were no reports of casualties, the ministry said.

Torrential downpours and flash floods kill scores of people annually in Afghanistan.

Many poorly built homes, mostly in rural areas, are at risk of collapse during the rains in the impoverished country.

Earlier this month, 16 people, including 15 children, were killed and dozens of houses destroyed when flash floods ravaged a village in the eastern province of Nangarhar.

Heavy monsoon rains have also wrought havoc on neighbouring Pakistan, with authorities in the southern city of Karachi reporting 30 deaths over the past three weeks from flood-related incidents, including injuries from collapsed buildings, drownings and electrocutions.

President Ashraf Ghani had ordered emergency relief to be sent to Charikar, the presidential palace said in a statement.