An earthquake with a preliminary magnitude of 7.5 on the Richter scale prompted a tsunami warning on New Year’s Day.