An earthquake has struck off the British Columbia coast, less than four days after major population centres were shaken by a similar-sized tremor.