Two court bailiffs were killed and a deputy was injured Monday after an inmate grabbed the deputy’s gun outside a holding cell in a Michigan courthouse, Berrien County Sheriff L. Paul Bailey said.

After shooting the officers, inmate Larry Darnell Gordon tried to take hostages in the courtroom area, shot a woman in the arm and was fatally shot by other bailiffs when he tried to flee, Bailey said.

Killed were Joseph Zangaro, 61, and Ron Kienzle, 60, according to CNN affiliate WXMI. They both had retired earlier from other law enforcement agencies and then served more than a decade each as bailiffs, Bailey said.

“Our hearts are torn apart,” Bailey said. “They were our friends. They were our colleagues. I’ve known them over 30 years.”

The injured deputy is James Atterbury, 41, WXMI said. He underwent surgery at Lakeland Health in St. Joseph and was expected to recover, Bailey said. The civilian woman who was shot also suffered non-life-threatening injuries, he said. Her identity was not released.

The shootings, which happened in St. Joseph, a small town on the eastern shore of Lake Michigan, occurred just a few days after a sniper killed five police officers in Dallas.

“I just want to be here to support. A terrible day and a wonderful community,”Michigan governor Rick Synder said, speaking out just hours after the tragedy. “I asked all Michiganers to put their prayers out. Their thoughts and prayers.”

The community, looking for hope and healing, gathered at Atterbury’s church, where his father is a pastor and where leaders of the congregation led prayers for the injured victims’ recovery.

His uncle, Robert Atterbury, said he never expected tragedy to hit so close to home. “He’s a great guy. I’ve known him since he was a baby,”he told CNN affiliate WBND of his nephew.

Authorities didn’t mention any connection between the Dallas shootings and events at the Berrien County courthouse, but Michigan Gov. Rick Snyder said, “This is a particularly tough time for law enforcement so I ask everybody to reach out and be supportive of law enforcement.”

Gordon, 45, of Coloma was being held on several felony charges, Bailey said. It was not clear what the specific charges were.

He had been taken from a holding cell and was being moved to a third-floor courtroom for an arraignment hearing when he began struggling with Atterbury, Bailey said.

“In that fight the inmate was able to get the deputy’s gun away and then shoot the deputy and then move out from that area and kill the two bailiffs,”Bailey said.

The officers were shot in a part of the courthouse that is not accessible to the public, Bailey said.

Gordon ran into a public corridor, shot the woman and spent about five minutes in the courtroom area trying to take hostages before he ran through a door and was “taken down by other bailiffs who responded,” Bailey said.

Bailey said it appeared Gordon was not handcuffed. When asked if any rules had been violated in handling prisoners, Bailey said, “We had no information he was going to be violent and not everybody who goes into the courtroom is handcuffed.”

Witnesses and family members of those caught up in the tragedy said that the immediacy of the threat shocked them.

“Everyone else got evacuated, but not them so they must’ve been right where it happened,”Mike Remsey, whose his wife and daughter had visited the courthouse to fill out paperwork, told CNN affiliate WBND. “It’s a scary thing to come to a public place and have gunfire, and your family in danger.”

One man, who was miles away, said he felt a range of emotions when he heard his wife was at the center of the shooting. “Goosebumps, nerves, shaking, anxiety. All of it. How else can you feel?”

“There’s been a lot of stuff lately, and it scared me.”

Michigan State Police and other agencies are investigating. The courthouse will be closed on Tuesday while the crime scene is processed.

St. Joseph is a town of about 8,300 on the eastern shore of Lake Michigan, about 35 miles north of South Bend, Indiana, and some 100 miles by car from Chicago.

Fatal shootings have happened before in courthouses.

In 2005, Georgia rape defendant Brian Nichols seized an officer’s gun and killed a judge, a court reporter and a sheriff’s deputy inside the Fulton County Courthouse in Atlanta. Before being captured, Nichols also killed a federal agent. He was sentenced to life in prison.