A man in Kansas has been arrested by the Lyons Police department after shooting an officer and a civilian.

KSN reported that the incident took place around 3:40 p.m. on Friday when the police department received a call from a man who said he was being threatened with a gun.

A responding officer arrived at the scene and was then shot by 40-year-old Adam Hrabik. The Wichita Eagle reported bystanders were able to help the wounded officer.

“Two nearby citizens who saw the shooting helped coax the officer away from the scene,” Melissa Underwood, a spokesperson for the Kansas Bureau of Investigation, said in a news release. 

“They then drove him to a local hospital in their private vehicle,” she added.

As police officers continued to arrive at the scene, they learned that the person who made the call, a 56-year-old man, was also shot.

The officer was taken to the hospital and has since been listed in critical condition. Meanwhile, the civilian has been listed as in serious but stable condition.

After receiving the call, dozens of law enforcement agencies around the state responded including the Kansas Bureau of Investigation and the Rice County Sheriff’s Office.

“I’ve been in law enforcement 20 plus years in Kansas, and that’s one thing that I’m really proud about is that law enforcement in our state always comes together in tragic situations but also in general, we had law enforcement agencies from all around this central region, I can’t even begin to name them all, but there was a number here,” Cory Latham, the KBI Special Agent in Charge, said.

Hrabik has been turned over to the KBI for questioning and the investigation remains ongoing.

Kansas Police A Kansas Department of Revenue employee was in critical condition after being shot multiple times at a Wichita tax office, Sept. 19, 2017. In this photo, authorities investigate the scene of a shooting at Village Shalom, an assisted living center in Overland Park, Kansas, April 13, 2014. Photo: REUTERS/Dave Kaup