A magnitude 2.6 earthquake was detected by the U.S. Geological Survey near Alaska.