A magnitude-6.0 quake hit off the coast of Peru on Saturday, the German Research Centre for Geosciences (GFZ) said.