CHICAGO (STMW) — A Cook County sheriff’s officer who was in bond court Thursday is facing a charge of attempted sexual assault, authorities said.

Fernando Rodriguez, 52, was charged with attempted aggravated criminal sexual assault; aggravated unlawful restraint; and official misconduct — all felony counts, Chicago Police said.

READ MORE: 'You Will Die:' Jovan McPherson Charged With Shooting CPD Officer, Kidnapping Woman In Lincoln Park

Rodriguez was arrested after he allegedly persuaded a 37-year-old woman to enter his vehicle about 1 a.m. Dec. 31 in the 1500 block of North Avers, police said. When she tried to leave, he stopped her and attempted to sexually assault her while armed with a handgun, police said.

According to a police report, Chicago Police officers questioned Rodriguez when they spotted an orange Dodge Charger double parked at that location, but he responded to them by showing his Cook County sheriff’s office badge and saying, “It’s ok guys, I’m on the job.”

A woman, who is a “known prostitute,” then exited the Charger’s passenger seat and told the officers that Rodriguez had invited the woman to get into his car, showed her his holstered handgun and implied a sexual act, the police report said.

READ MORE: 4-Month-Old Girl Was Killed In Act Of Child Abuse In South Shore, Officials Say

The police report states that Rodriguez told the woman, “Take care of me the right way and I’ll let you walk.” When officers arrived, Rodriguez “grabbed her left arm and stated: ‘Be cool.’”

Rodriguez was a deputy sheriff in the Civil Process unit and was not on duty at the time of the incident, said Sophia Ansari, spokeswoman for the sheriff’s office. He has been de-deputized, and the sheriff’s office has launched a disciplinary investigation, Ansari said.

The next court date or bail amount for Rodriguez, who lives in River Grove, was not available.

 (Source: Sun-Times Media Wire © Chicago Sun-Times 2015. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

MORE NEWS: CPD: 21 Officers Not Being Paid After Defying City's COVID Vaccine Mandate