Two sheriff’s deputies in Kansas who were shot while transporting inmates from a jail to a court hearing on Friday died of their injuries, the police in Kansas City, Kan., said on Saturday.

Officials said Friday that it appeared the deputies were shot with one of their own weapons.

“When they pulled into the parking lot and readied to transport these inmates, they were overcome,” Maj. Kelli Bailiff, a spokeswoman for the Wyandotte County sheriff’s office, said at a news conference on Friday. “It is very possible that with their own firearm they were both shot.”

A suspect was also shot and brought to the University of Kansas Medical Center, officials said. The police did not release any information about the suspect’s condition other than to say Friday that the person was undergoing surgery.

The deputies, Patrick Rohrer, 35, and Theresa King, 44, were taken to the same hospital. Deputy Rohrer, a seven-year veteran of the office, died of his injuries on Friday. Deputy King died early on Saturday morning. She had been with the office for 13 years.