SAN JOSE — A veteran correctional officer now sits in the very same jail he once secured following his arrest on drug offenses, and stands accused of harboring “known criminals” at his home partly in exchange for giving him narcotics, according to the Santa Clara County Sheriff’s Office.

After an internal affairs investigation, deputies Monday searched the San Jose home of 48-year-old Juan Carlos Carillo and arrested him on suspicion of being under the influence of a controlled substance and possessing a controlled substance. The Sheriff’s Office did not detail what kind of narcotics were found..

In a brief statement to this newspaper, Sheriff Laurie Smith voiced disappointment in the revelation.

“This alleged conduct is wrong especially when committed by a person who is held to a higher standard,” Smith said. “The public’s trust has been violated and rest assured we will continue to investigate this conduct.”

The Sheriff’s Office said Carillo is one of the 300 deputies assigned to the Santa Clara County main jail and has worked for the agency for 14 years. He has been placed on administrative leave. He was also placed in protective custody — out of safety concerns related to his status as a law-enforcement officer — at the jail and his bail was set at $121,000. He is tentatively scheduled to appear in court Thursday.

Deputies also arrested three other San Jose residents in connection with the investigation:

Bonifascio Limon, 23, on suspicion of being a felon in possession of a firearm and ammunition, possessing a controlled substance, resisting arrest, and violating parole

Michael Torres, 25, on suspicion of being under the influence of a controlled substance and violating probation