DEVELOPING: Two court bailiffs were killed and a police officer shot Monday inside a southwestern Michigan courthouse when an inmate broke loose and got his hands on a deputy’s gun, officials said.

Berrien County Sheriff Paul Bailey told local media at a press conference the gunman, whose identity was not immediately available, was killed by responding police.

“Brave officers” took down the shooter, Bailey said.

The incident occurred just days after five Dallas police officers were killed by a sniper, and amid a wave of violence and threats against law eforcement officers around the country.

The gunfire erupted inside the Berrien County Courthouse in St. Joseph around 2:30 p.m., Fox 17 reported. Bailey said the deputy sheriff who was shot is in stable condition at Lakeland Hospital in St. Joseph, Mich. A post on the Berrien County Sheriff’s Facebook page said the officer was shot in left arm and finger.

A Berrien County Commissioner told WBND that a man who was on his way to jail took a gun off a deputy and started opening fire.

The courthouse is located about 50 miles west of Kalamazoo, where an Uber driver killed six people in a shooting spree earlier this year.

Michigan Gov. Rick Snyder announced on Twitter that the Michigan State Police has secured the scene, and is beginning its investigation into the shooting.

St. Joseph is located in far southwestern Michigan’s Berrien County, which borders Indiana.

Click for more from Fox17Online.com

The Associated Press contributed to this report.