Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

ISTANBUL — Nine people died and hundreds of buildings collapsed in southeastern Turkey on Sunday after a magnitude-5.7 earthquake struck near the border with Iran, injuring dozens in villages and towns in both countries, government officials said.

Three of those killed were children and 37 Turkish people were injured, including nine critically, Turkey's health ministry said.

The shallow tremor caused more than 1,000 buildings to collapse in Turkey, prompting a brief rescue effort to find those trapped under rubble.

The quake damaged buildings some 56 miles to the west in the Turkish city of Van, and to the east in dozens of villages in Iran, where state TV said 75 people were injured including six in hospital, though there were no fatalities.

Turkish TV footage showed people digging with shovels and their hands in the rubble, as well as furniture and belongings strewn on cracked and snowy roads.

In one village the ground cratered under several buildings, while in others residents were wrapped in blankets outside homes with crumbled and cracked exterior walls, fallen metal roofs and twisted wiring.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

"The damage caused loss of life," the governor of Van, Mehmet Bilmez, told reporters standing in front of a pile of cinder blocks and sheet metal. "There is destruction in all four villages" he visited on Sunday morning, he added.

The European Mediterranean Seismological Center (EMSC) said the quake, which hit at 8:53 a.m. local time, had a depth of 3.1 miles.

Broadcasters and government officials said dozens of villages were rattled in Turkey, which like Iran has a history of powerful earthquakes. Nearly 150 tents were sent to shelter families in the region, where several schools in the districts of Baskale, Saray and Gurpinar sustained minor damage.

Turkey's Disaster and Emergency Management Authority (AFAD) has begun rescue work in villages including in Ozpinar, about 15 miles south of the epicenter, said Interior Minister Suleyman Soylu. AFAD measured the tremor at 5.9 magnitude.

The U.S. Geological Survey put the epicenter 47 km west of the Iranian city of Khoy, where people felt the tremor, according to state TV.

An earthquake last month in eastern Turkey killed more than 40 people while another in Iran did structural damage to homes without causing any fatalities.

An Iranian official told state TV that rescue teams had been dispatched to the area in Iran's West Azarbaijan province.

They added: “So far, we had no reports of damage or fatalities in the area, which is not a populated area in Iran's West Azarbaijan province.”

But another local official told state TV that the earthquake was felt in several cities including Khoy, Urmiah and Salmas. He said about 43 villages in Iran were impacted.

"We had no reports of casualties, only injuries," he said.

Crisscrossed by major fault lines, Iran and Turkey are among the most earthquake-prone countries in the world.

Last month a quake centered on the eastern Turkish city of Elazig killed more than 40 people.