A magnitude 7.7 earthquake has struck off the coast of Canada's British Columbia province, according to the U.S. Geological Survey.