The U.S. Geological Survey says it had a magnitude of 5.3 .