A major 6.9-magnitude quake struck along the coast of central Peru, the US Geological Survey has reported, sending thousands of panic-stricken residents of Lima and other cities into the streets.