A 6.8-magnitude earthquake struck off New Zealand's South Island on Tuesday, the United States Geological Survey said.