At least 10 people have died in collapsed buildings and dozens have been injured in the city of Lorca in southeastern Spain after a 5.1 magnitude earthquake struck, according to officials.

Lorca is a town of about 90,000 people.

Officials in the Murcia region have prepared food for more than 10,000 people in Lorca who have been affected or have experienced damage to their homes, according to Spanish news outlet ABC.

People had been making their way to parks and gardens after a smaller quake of 4.4 magnitude struck earlier in the day.

The quake struck at 6:47 p.m. local time, according to Spanish authorities.

All of Lorca has been damaged with landslides, said Rafael Gonzalez Tovar told Radio Nacional, according to Reuters.

Images on television have shown destroyed cars, and damaged buildings.