The Auckland CBD shooter has been confirmed as 24-year-old Matu Tangi Matua Reid.
Reid had recently appeared in court on family violence charges.
He was on home detention and wearing an ankle bracelet, according to police.
He had an exemption on his home detention to work at the site, Police Commissioner Andrew Coster said earlier.

This morning Reid entered a building that was being renovated in lower Queen St near Britomart and opened fire.
He shot dead two people and injured six, including a police officer who was critically injured. The gunman was also shot.
Police were on the scene within minutes after reports of a gun being fired in downtown Auckland. (Source: 1News)
It's not yet clear if he was shot by police.
In the above photo from 2017, Reid had just completed a "Ready for the Road" responsible driver training course.
Andrew Coster said the shooting is likely connected to the man's work at the CBD construction site. (Source: 1News)
"We've contained the situation and are not seeking anybody else," Coster said.
"The individual is known for primarily family violence history, there is nothing to suggest that he has presented a higher-level risk than was indicated by that history."
Coster said Reid's home had been searched by police before.
"We have certainly never found him in possession of a firearm," the commissioner said.
Reid didn't have a firearms licence.
SHARE ME