FAIRFIELD (CBS13) — Three deputies were injured when a man tried to escape from an underground holding cell at the Solano County Courthouse.

A blaring siren would let everyone inside the Solano County Courthouse know that something was wrong. Most thought it was a fire, but deputies say the fire alarm was set off during a suspected escape attempt.

READ MORE: Hamilton Fans Evacuated After Fire Alarm Goes Off In Sacramento Convention Center

“This is very unusual,” said Deputy Daryl Snedeker.

They say a maximum security prisoner being escorted for a court date decided to take on three deputies in the transportation tunnels of the jail.

At one point, deputies say the inmate would take a fire extinguisher off the wall and try to use it as a weapon.

READ MORE: Missing Marysville Teen Carmen Miller May Be Victim Of Sex Trafficking, Police Say

CBS13 cameras caught the crime scene behind the courthouse. Deputies would eventually subdue the prisoner with a stun gun.

The three deputies were taken to the hospital and will recover. The prisoner also went to the hospital.

Meanwhile, those attempting to carry out court business were forced to wait for some time, while the building was cleared and eventually reopened.

MORE NEWS: Proposed Campground Expansion At Auburn State Recreation Area Draws Concern Over Wildfire Risk

As for what happened, and if anything could have been done differently, deputies say they’re looking into it.