NZ attacker shot dead after wounding at least six