The quake, which had a preliminary magnitude of 7.7, was centered in the country’s southern region.