The U.S. Geological Survey said the earthquake Wednesday evening was magnitude 8.2 and struck 56 miles east southeast of Perryville, Alaska, off the state's peninsula.