ROME — Two women died and at least three dozen other people were injured after an earthquake of magnitude 4.0 struck near the island of Ischia, a popular tourist destination off the coast of Naples, Italy.

The temblor, which hit on Monday at about 9 p.m., caused significant damage to the area around the towns of Casamicciola and Lacco Ameno, where some buildings crumbled and roofs collapsed. In the two towns, 2,600 residents were evacuated from their homes, and a spokeswoman for the national Civil Protection Department said the damage was “present and visible.” Checks were underway in other towns on the island, but no major collapses had been immediately reported anywhere else.

Rescue workers searched the rubble for survivors through the night. Three children were trapped under a building that had collapsed in La Rita, a small village near Casamicciola. The youngest, a 7-month-old, was rescued during the night. The other two were his brothers. One, a 7-year-old, was freed in the morning, after firefighters had remained in contact with the children all night. The third child, age 11, was removed from the rubble on Tuesday, about 16 hours after the earthquake. Italian news media showed the boy, covered in dust, being whisked on a stretcher to a waiting ambulance.