An earthquake of magnitude 6.4 struck off the coast of Central America on Sunday, the European-Mediterranean Seismological Centre said. The quake was at a depth of 2 km (1.24 miles), EMSC said.