A strong earthquake drove frightened residents of El Salvador’s capital into the streets, but there was no immediate report of damage or deaths.