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