A magnitude 7.1 quake struck nearly 250 km (155 miles) northwest of Puerto Maldonado, Peru, in the early hours of Friday at a depth of 610 km, the U.S. Geological Survey said.