Another officer is in hospital with a serious leg injury as police continue to hunt for the gunman.
A police officer has been shot and killed and another is seriously injured after making a routine traffic stop in New Zealand.
Police said the two officers pulled over a car carrying two people on Friday morning in Auckland when one of them started firing at them with a long-barrelled gun.
The vehicle then sped off, hitting and injuring a bystander as it fled the scene.
Police are searching for the gunman, who is on the run.
Police Commissioner Andrew Coster said there was nothing to indicate anything was out of the ordinary when the car was first pulled over. He said the officers were not carrying guns.
New Zealand police do not routinely carry guns but usually have them available in the boot of their vehicles.
“This is a shocking situation,” Mr Coster told reporters.
“It is the worst news police, and police officers’ families, can ever receive in the course of what we do.”
He said the second officer was in hospital with serious leg injuries, while the member of public who was hit by the car was also receiving treatment for minor injuries.
Heavily armed police had raided at least one home near the site of the shooting, according to local media.
Police did not immediately provide further details.
Schools and childcare centres near the scene of the incident have been put on lockdown while police continue to hunt for the suspect.
Prime Minister Jacinda Ardern said the news of the officer’s death was devastating.
She said: “To lose a police officer is to lose someone working for all of us, but also a family member, someone’s loved one and friend.”
Police Minister Stuart Nash said the officer “was a man who dedicated his career to keeping us safe”.
Witness Elaine Taniela told The New Zealand Herald she was at home when she heard gunshots.
She said a friend who was on his way to her house at the time described seeing an officer on the ground shaking.
It has been 11 years since the last New Zealand officer was killed in the line of duty.
Following a mass shooting in March last year in which a gunman killed 51 people at two Christchurch mosques during Friday prayers, New Zealand enacted new gun controls banning the deadliest types of semi-automatic weapons.