Staff and cleaners at a Wellington school where a man was shot by police found out about the incident on social media.
Emergency services were called to a family harm incident at Kingsbridge Place on Tuesday around 3pm.
Police said they tried to appeal to the man but he made threats to officers and tried to barricade himself in a property with a woman.
They fired multiple shots, critically injuring the man. Police said they gave him medical attention and requested ambulance support, however the man died a short time later.
A woman at the house was found with non-life threatening injuries and was treated at the scene by ambulance staff.
Police have yet to say whether the man had a weapon.
At least one King Cobra gang member was seen yelling aggressively at the police cordon on Tuesday evening.
The grounds of Newlands Intermediate School back on to some of the properties on the street, and a public walkway off the street is used to get into the school.
"A member of my board of trustees alerted me to the fact that there had been shots fired and there were some emergency services at a street not too far from the school," principal Angela Lowe said.
"Fortunately it was after school so the grounds were pretty much clear, the students had all left."
Staff were on site doing professional development, and cleaners were working there.
"I have a great [deputy principal] who went round and just told everybody quietly it was time to go, that there had been incidents in the street, advised the cleaners that it was time to move off site as well and to get home and to be safe."
She said she would be checking with police about whether they tried to contact her, and how they could do so after school hours.
"We found out via Facebook" - Newlands Intermediate School principal Anglea Lowe
"This will be a surprise and a shock to the community. The community is very settled, there's hundreds of children who walk to school every day, it's a very connected community. I think people will be concerned and surprised that this occurred in their own area.
"We will do everything we can do to make sure today is a very calm day at our school."
A neighbour, Jeremy, said it was known that gang members lived there but they normally kept to themselves, and gangs had never been a problem in the area.
He said it was normally a quiet, family-friendly area.
Where to get help:
Need to Talk? Free call or text 1737 any time to speak to a trained counsellor, for any reason.
Lifeline: 0800 543 354 or text HELP to 4357
Suicide Crisis Helpline: 0508 828 865 / 0508 TAUTOKO (24/7). This is a service for people who may be thinking about suicide, or those who are concerned about family or friends.
Depression Helpline: 0800 111 757 (24/7) or text 4202
Samaritans: 0800 726 666 (24/7)
Youthline: 0800 376 633 (24/7) or free text 234 (8am-12am), or email talk@youthline.co.nz
What's Up: online chat (3pm-10pm) or 0800 WHATSUP / 0800 9428 787 helpline (12pm-10pm weekdays, 3pm-11pm weekends)
Asian Family Services: 0800 862 342 Monday to Friday 9am to 8pm or text 832 Monday to Friday 9am - 5pm. Languages spoken: Mandarin, Cantonese, Korean, Vietnamese, Thai, Japanese, Hindi, Gujarati, Marathi and English.
Rural Support Trust Helpline: 0800 787 254
Healthline: 0800 611 116
Rainbow Youth: (09) 376 4155
OUTLine: 0800 688 5463 (6pm-9pm)
If it is an emergency and you feel like you or someone else is at risk, call 111.
Sexual Violence
Victim Support 0800 842 846
Rape Crisis 0800 88 33 00
HELP Call 24/7 (Auckland): 09 623 1700, (Wellington): 04 801 6655 - push 0 at the menu
Family Violence
Women's Refuge:(0800 733 843
It's Not OK 0800 456 450
Shine: 0508 744 633
Victim Support: 0800 842 846
HELP Call 24/7 (Auckland): 09 623 1700, (Wellington): 04 801 6655 - push 0 at the menu
The National Network of Family Violence Services NZ has information on specialist family violence agencies.