New Zealand’s Prime Minister John Key says he is resigning after some eight years in office, taking the country by surprise with the abrupt announcement.