A magnitude 6.9 earthquake struck southern Peru on Sunday, shaking the capital Lima 300 miles away but triggering no widespread damage or injuries.