A strong earkthquake measuring 7.4 shook an area in the Pacific Ocean off the coast of El Salvador early Monday, the US Geological Survey said.