Magnitude 6.9 quake shakes buildings in Peru capital