A tsunami warning was briefly issued after a 7.8 magnitude earthquake struck 105 kilometres off the coast of Alaska.