Two children and a police officer have been shot dead in the US - before the gunman was killed, authorities say.
The man, 40-year-old Landy Acevedo-Rodriguez, opened fire at a home in Stafford Township, in the state of New Jersey, Ocean County Prosecutor Bradley Billhimer said.
Two children were killed and two adults were injured.
Acevedo-Rodriguez fled in a vehicle but was located by police in Barnegat Township, which is north of Stafford.
Police officer Evan Sands attempted to stop him, but Acevedo-Rodriguez fired multiple gunshots at him and the officer died from his injuries, the authorities said.
Acevedo-Rodriguez, who officials said came from Barnegat, then drove north into Lacey Township, where he was fatally shot in an exchange with police.
Lacey Township police said four officers were taken to hospital after the shootout. Their injuries were not life-threatening.
The shootings in the three towns spanned about a 10-mile area in Ocean County along New Jersey's shore, north of Atlantic City.
Multiple law enforcement agencies and the Ocean County Prosecutor's Office were investigating the three crime scenes, officials said.
Mr Billhimer said the series of events began at about 11.56pm, local time, on Tuesday.
More from Sky News:
Pair convicted after throwing custard at Crown Jewels
'Grinch' steals Christmas trees worth thousands
Stafford Township police received two 911 calls - the first call was made by a woman inside the home who said a man pointed a firearm at her.
He said a neighbour made the second call, requesting help for a woman who had been shot.
In a statement, Mr Billhimer added: "Our law enforcement family is mourning an unimaginable loss.
"The tragic killing of Officer Sands in the line of duty is a devastating reminder of the dangers our men and women in law enforcement face each and every day while protecting our communities.
"Our hearts are broken for Officer Sands' family, friends, and fellow officers, as well as the entire Barnegat Township Police Department."
Mr Sands was married with two children. He was also certified as a personal trainer, a police report said.
"Evan was a devoted husband and father," Barnegat Police Chief Jason Carroll said in a statement.
"His two young children loved and adored their father, and he loved them dearly. He was a son, a brother, and a friend to many. In the days ahead, I ask that you keep Evan's wife, his children, and all who loved him in your thoughts and prayers. Please give his family privacy as they grieve."
Flowers were placed on a police car on Wednesday outside Barnegat's municipal complex and police department in his honour.
The New Jersey State Policemen's Benevolent Association said it was "devastated" and urged people to pray for the officer's family.
Association president Peter Andreyev added: "We have lost one of our members. We need prayers and support in these darkest hours for so many."
(c) Sky News 2026: Two children and police officer shot dead in New Jersey - before gunman killed
Prince Harry denied state-funded security but added to permanent risk assessment list, Sky News understands
Early flu surge sees hospitalisations almost double in a week - with millions still unprotected
Two arrested on suspicion of assisting Iran's intelligence service
Poundland owners Gordon Brothers called in for public hearing
Ex-NHS Grampian boss defends decision to keep avoidable deaths report secret