Thick mud and debris have coated many villages around the Philippine capital after a typhoon killed at least 42 people and caused extensive flooding that sent people fleeing to their roofs, officials said.

Troops, police, coastguard and disaster response teams rescued tens of thousands of people, including many who flooded radio and TV networks and social media with desperate pleas for help.

Floodwater receded and the weather cleared in many areas after Typhoon Vamco blew out into the South China Sea on Friday, but the military said it was still rescuing people trapped in flooded communities.

Amphibious vehicles usually used in counter-insurgency operations were deployed for the rescue work, military chief of staff General Gilbert Gapay said in a meeting with disaster response officials.

“We’ll continue to look for the missing, help in damage assessment,” Gen Gapay said.

Philippines Asia Typhoon
Rescuers carry children out from a flooded street due to heavy rains brought by Typhoon Vamco (Basilio Sepe/AP)

The national police reported the death toll had risen to at least 42 with 20 missing.

The government’s main disaster response agency, which waits for provincial reports and follows a laborious process of verifying casualties, reported a much lower death count.

Among the dead were at least 12 villagers who were dug out from mud and rockslides in the northern provinces of Cagayan and Nueva Vizcaya, police said.

After slamming into north-eastern Quezon province, Vamco gained strength with sustained winds of 96mph and gusts of up to 158mph. It blew north of metropolitan Manila overnight on Wednesday, toppling trees and power lines, swelling rivers, flooding residential communities and setting off landslides and storm surges.

In hard-hit Marikina city, in the capital region, and the towns of Rodriguez and Cainta in nearby Rizal province, several villages were inundated by water that reached the second and third floors of many houses, prompting hundreds of residents to flee to their roofs and call TV and radio networks or post desperate messages on social media.

The panic was exacerbated by widespread power outages and loss of internet access.

Philippines Asia Typhoon
A man walks on top of a roof of a submerged house as floods inundate villages in Rizal province (Basilio Sepe/AP)

Videos from Marikina showed a thick coat of muddy water covering roads and staining houses and cars. Residents carried appliances and furniture from their homes and used buckets and shovels to remove the mud after the water receded.

In a televised meeting of cabinet and disaster response officials on Friday, a reporter asked where President Rodrigo Duterte was, prompting an annoyed response from his spokesman.

“The president’s whereabouts should not be asked. That’s foolishness coming from the opposition. The president is not missing, he is always with us,” Harry Roque said, without offering any further details.

More than 400,000 people were evacuated to higher ground before the typhoon hit, mainly residents of vulnerable coastal and low-lying areas.

At least 3.8 million households lost power in the capital and outlying provinces, but crews later restored electricity in many areas. Government offices were closed and most school classes were suspended on Friday.

Vamco hit the Philippines on the heels of Typhoon Goni, one of the strongest typhoons in the world this year, which left more than 30 people dead or missing and damaged or destroyed 270,000 houses. Tens of thousands of people were still displaced when Vamco hit.

The Philippines is hit by about 20 typhoons and tropical storms each year and also has active seismic faults and volcanoes, making it one of the world’s most disaster-prone countries.