At least 27 people were injured after a 5.8-magnitude earthquake struck the Pacific region of Peru. No deaths were reported.