The U.S. Geological Survey said the earthquake had a preliminary magnitude of 6.5 with the epicenter near the Pacific coast resort town of Acapulco.