New Zealand is in mourning after a shooting in Auckland left two people dead, hours before the city opened the Fifa Women's World Cup.
Six other people, including police officers, were injured and the gunman is also dead after the incident at 07:22 (19:22 GMT) on a construction site in the central business district.
PM Chris Hipkins said the attack was not being seen as an act of terrorism.
The tournament would go ahead as planned, he confirmed.
While no political or ideological motive for the attack had been identified, police had neutralised the threat and the public could be assured that there was no ongoing risk, the prime minister said.
Auckland Mayor Wayne Brown said the shooting was not in any way related to the Women's World Cup.
The shooter, 24-year-old Matu Tangi Matua Reid, tore through a construction site with a pump-action shotgun, plunging the busy centre of New Zealand's largest city into lockdown.
The man was know to police and had a history of family violence and mental health issues. He had been subject to a home detention order but had an exemption to work at the site. He did not have a license to own a firearm.
Mr Hipkins addressed the victim's families in a televised speech, saying, "The whole nation is mourning with you".
"The victims went to work this morning as they do every morning, but they won't be coming home tonight," he said.
Police will look specifically into how the man got hold of a firearm despite New Zealand's strict gun control laws.
"I've got confidence that they will investigate fully what happened here and they will be able to provide answers to questions we have in time," he said.
All Fifa personnel and football teams are safe and have been accounted for. Earlier, he had warned people to stay home and avoid travelling into the city, Mr Brown said.
"I can't remember anything like this ever happening in our beautiful city. This morning's events have been tragic and distressing for all Aucklanders, as this is not something that we are used to," Mr Brown wrote on Twitter.
Fifa expressed its "deepest condolences" to the victims' families and said it was in communication with New Zealand authorities.

"The participating teams in close proximity to this incident are being supported in relation to any impact that may have taken place," it said.
The opening match between New Zealand and Norway in the city's Eden Park got under way at 19:00 local time (07:00 GMT).
Sport Minister Grant Robertson said there would be extra police in the area to provide reassurance.
The ninth Women's World Cup is being co-hosted by New Zealand and Australia.
Police said they heard reports of a person discharging a firearm inside the construction site, and the gunman moved through the building and continued to fire.
The man then went into a lift shaft and police attempted to engage with him.
Further shots were fired by the man and he was found dead a short time later, police said.
Following the shooting there was a large armed police presence in the central business district not far from the waterfront and the fan park.
Tatjana Haenni, chief sporting director for National Women's Soccer league USA, is staying close to where the shooting happened.
She told BBC News she had woken up to sounds of police cars arriving and was told to stay inside. "So far we feel safe," she said.
Latest Stories
-
Only a cartel benefiting from Ghana’s revenue hemorrhage will resist SML solution – Rev. Charles Owusu
19 minutes -
Energy Ministry denies scaremongering claims against John Jinapor
32 minutes -
Minority slams tariff hikes, calls for better performance from ECG
33 minutes -
AfDB set for a new president, as Ould Tah gains continental endorsement
39 minutes -
Resolve trade imbalance with trust, not tariffs – Bawumia to world leaders
47 minutes -
NADMO confirms no casualties from Sunday’s heavy rains
52 minutes -
16-year-old student arrested with locally made gun
59 minutes -
Karpowership in Ghana: Delivering reliable power, driving sustainable growth
1 hour -
Biden’s cancer diagnosis is another formidable challenge
1 hour -
Bawumia declares ‘I was made for this’ as he leads Africa’s digital agenda at Cambridge
1 hour -
‘Tight monetary-fiscal coordination is paying off, but may be hurting growth’ – Economist warns
2 hours -
‘Africa’s time is now’- Bawumia inspires with digital vision at Cambridge Conference
2 hours -
‘Are we sacrificing the environment to save the cedi?’ – Prof. Bokpin quizzes BoG’s gold strategy
2 hours -
Bawumia’s Cambridge speech makes the case for digital Africa
2 hours -
‘Why is a board member doing PR?’ – Ken Thompson on Adongo’s dollar withdrawal comments
3 hours