LIMA - An earthquake that shook buildings in the Peruvian capital of Lima on Tuesday had a magnitude of 5 and struck south of Lima, the Geophysical Institute of Peru said. There were no immediate reports of damages.