A magnitude-6.0 earthquake struck 51 km northeast of Lima, Peru on Friday, the European Mediterranean Seismological Centre (EMSC) has reported.