An earthquake of magnitude 6 struck Panama on Monday, the European-Mediterranean Seismological Centre (EMSC) said.