A magnitude-5.7 earthquake struck near the coast of Peru at a depth of 10 kilometers on Sunday, according to the GFZ German Research Center for Geosciences.