ANKARA, Turkey — At least nine people were killed and more than 30 injured in Turkey after a magnitude-5.7 earthquake struck western Iran on Sunday morning, Turkey’s interior minister said.

The quake, centered on the Iranian city of Khoy, affected villages in the Turkish province of Van. Many people remained trapped under the debris of fallen buildings, said the minister, Suleyman Soylu.

He said at a news conference in Ankara, the Turkish capital, that three children and four adults were killed in Baskule District, and five injured people were taken to the hospital. Mr. Soylu said that the quake hit four Turkish villages in Van, and that some of the fatalities had occurred in Ozpinar Village, where search and rescue teams had arrived.

Turkey’s health minister, Fahrettin Koca, said nine died and at least 37 others were injured, with nine in critical condition.