The earthquake hit 91 kilometers southeast of the town of Perryville with a tsunami warning in effect for south Alaska and the Alaskan peninsula.