A gunman in California shot and wounded a highway patrol officer and then took two bystanders hostage before fatally shooting one and wounding the other, police in Roseville said.

The violence broke out minutes after a California Highway Patrol officer reported that he had been shot on a police radio around 12:30 p.m., Roseville Police Capt. Kelby Newton told reporters. .

Officers arrived in the Mahany Park area and found a man running from them and shooting at them, Newton said.

He took two hostages, both adults, in a green belt area, said the police.

Those people «were hit by gunfire from the suspect during the incident,» and one of them was pronounced dead at the scene, Newton said. Police said they believe the suspect shot both of them during the incident.

Police arrested the suspect, who was taken to a hospital with gunshot wounds. Police initially said he did not appear to have been shot. His condition is unknown, authorities said.

The injured hostage had injuries that did not appear to be life-threatening, police said.

Police officers at a roadblock leading to the scene of a shooting that killed one person and injured two others, including a California Highway Patrol officer, in Roseville, California, on Thursday.Rich Pedroncelli/AP

The highway patrol officer who was shot was in stable condition, CHP Officer Ricardo Ortiz said.

It was not immediately clear how they ended up shooting the hostages. Their identities and the identity of the suspect have not been released publicly.

The shooting occurred near some Little League fields, police said. There were no official events there at the time, but there were people in the area.

A man out in the fields with his 12-year-old grandson and his friend for batting practice. told Sacramento’s NBC affiliate KCRA that the officers ran up and told them to get down.

“We ran to the bench. I think the cops were shooting like this, and this guy was shooting at the cops,» the man said. “The bullets were passing us, so we ducked. Very scary.»

Newton said CHP was serving an arrest warrant at the time of the incident, and referred to that agency for more details.

CHP did not immediately respond to a request for additional details Thursday night.

Also near the scene of the shooting was a library where campouts were taking place, and some people were at a high school near the scene, though school was not in session this week, Newton said.

Those facilities remained in place until the incident ended, he said. People were also using trails in the park at the time.

Roseville is a city of about 147,000 people northeast of Sacramento.