An Erie County sheriff's deputy assigned to the holding center has been charged with smuggling a controlled substance into the jail.

Investigators say Adam Fiegl, 32 of Orchard Park, was accepting bribes in return for providing suboxone to inmates.

"I think that everyone in the criminal justice profession and the closer you get to where the problem actually occurs feels a sense of betrayal and embarrassment," Erie County Sheriff Timothy Howard told 7 Eyewitness News.

Sheriffs say this man smuggled Suboxone to inmates for cash @WKBW pic.twitter.com/aYprjkw9eM — Desiree Wiley (@DesireeWiley) April 19, 2016

Fiegl appeared in Buffalo City Court Tuesday facing three felonies. Fiegl's attorney Thomas Eoannou said his client is a trustworthy individual who spent nearly 10 years in the military, served in Iraq and spent four year with the National Guard.

Fiegl after "substantial investigation" is charged with 3 felonies. He's a Deputy Sheriff @ Erie Co Hilding Center @WKBW — Desiree Wiley (@DesireeWiley) April 19, 2016

Suboxone is used to treat adults addicted to opioids.

A search of his property found a quantity of suboxone and $200 cash.

Fiegel is charged with introducing contraband into a prison, criminal possession of a controlled substance, and receiving a bribe.

Fiegl, who has been a sheriff's deputy since 2013, is suspended without pay.

He was being held at the Niagara County Jail in Lockport. He is now out after posting bail.