A policeman directs traffic after an earthquake shook Tasikmalaya, West Java September 2, 2009. (REUTERS/Stringer)

A policeman directs traffic after an earthquake shook Tasikmalaya, West Java September 2, 2009. (REUTERS/Stringer)

Indonesians ran screaming out of buildings when a major earthquake rocked the country Wednesday, killing more than 30 people and unleashing a mass of rock and mud that buried villagers alive in their homes.

The magnitude-7.0 temblor lasted nearly a minute and was felt hundreds of miles (kilometers) away. Many of the victims were in buildings that buckled during the jolt, and at least 10 died in their houses when a landslide slammed into their neighborhood. Dozens were reported missing and injured.

Thousands of panicked residents fled homes, malls and government offices throughout the country, some screaming in fright, when the shaking began in the middle of the work day.

More than 700 structures collapsed or were badly damaged in towns and villages in hardest-hit West Java, said Social Affairs Ministry official Mardi, who like many Indonesians uses one name.

The Disaster Management Agency said at least 33 people died. With several dozen reported missing, officials said they feared the death toll would rise.

“The earthquake was shaking everything in my house very strongly for almost a minute,” Heni Maryani, a resident in the town of Sukabumi told el Shinta radio. “I grabbed my children and ran out. I saw people were in panic. Women were screaming, and children were crying.”

Hospitals quickly filled with scores of injured people after the quake struck just off the southern coast of Java, where most of Indonesia’s 235 million people live.

A tsunami warning was issued after the quake struck at 2:55 p.m. (0755 GMT, 3:55 a.m. EDT) but revoked an hour later. Several dozen aftershocks were measured by geological agencies.

“My house collapsed,” said Fifi, a resident of Pameungpek village. “Everyone stayed outside because we were afraid of aftershocks.”

The worst report of fatalities was from a village in Cianjur district, where about 30 people were still believed trapped after the landslide, the official Antara news agency reported. The Disaster Management Agency said 10 bodies had been pulled from the debris.

“Most of them are housewives and children who were playing PlayStation in a buried house,” Entang Kurniawan, another resident, told broadcaster TVOne.

Muharaham Ardan, a university lecturer in the town of Tasikmalaya, about 70 miles (115 kilometers) from the epicenter, said it was the biggest quake he had ever felt. Officials said seven people died there.

“We all ran out in panic, we didn’t even put our sandals on,” he said. “The neighbors were shouting: ‘Get out of the house! Get out of the house!'”

Health Ministry Crisis Center chief Rustam Pakaya said at least 27 people were admitted to hospitals in Jakarta and the number of injured was still rising. One person died in Jakarta, but no details were provided.

The U.S. Geological Survey said the underwater quake was magnitude 7.0 at a depth of about 30 miles (50 kilometers). The Indonesian Meteorological and Geophysics Agency put the strength at 7.3.

Indonesia, a vast archipelago, straddles continental plates and is prone to seismic activity along what is known as the Pacific Ring of Fire. A huge quake off western Indonesia caused a powerful tsunami in December 2004 that killed about 230,000 people in a dozen countries, half of them in Aceh province.