An earthquake with magnitude 7.1 struck southern Peru, 67 km north-northwest of Juliaca, according to the United States Geological Survey.