A magnitude 5.7 earthquake struck off the east coast of North Island, New Zealand on Thursday, the German Research Centre for Geosciences said.