(CNN) A female deputy who was shot Friday as she and another deputy were transporting prisoners from a courthouse has died, officials in Kansas City, Kansas, said Saturday.

The male deputy, Patrick Rohrer, was also shot and died at the hospital Friday. He and Theresa "TK" King were overcome by the suspect inside a gated area, police said. She died early Saturday morning.

"Deputy King and Deputy Rohrer did not just offer to us a total gift of themselves yesterday. They did it each and every day that they stepped out into their community," Mayor David Alvey said.

Deputy Patrick Rohrer

Rohrer, 35, was with the Wyandotte County Sheriff's Office for 17 years and King, 44, was a 14-year veteran. They both worked in the prisoner transport division.

Maj. Kelli Bailiff, a spokeswoman for the sheriff, said the two slain deputies were "bright and intelligent wonderful personalities. They were an asset to our agency. They came to work every day with a smile, willing to help out, willing to do anything."

Read More