Both quakes struck near San Martin; the first one was recorded at 12:35 p.m., the U.S. Geological Survey said.