A 7.4 magnitude earthquake off Mexico's Pacific coast prompted concerns of a tsunami.