N Zealand attacker to undergo mental health check