The quake also cut off power to the town of about 30,000 people and it was without lights after dark.