New Zealand prime minister condemns mass shooting