A deputy in Fort Coffee, Oklahoma, says he was pulled over by a man impersonating a police officer.

Deputy Tyler Ragan was working undercover in the LeFlore County Sheriff's Office. He told KFSM he was driving in an unmarked vehicle Saturday when the red Chevy pickup truck behind him turned on flashing blue and red lights.

The LED lights were mounted on the windshield of the vehicle.

>> Read more trending news

“The person had tried to come up around my vehicle that I was in and I noticed that it wasn't a police car,” Ragan said.

KFSM reported that, according to police records, Roger O'Hara, 46, was driving the car and pulled Ragan over.

“I ordered his hands out the window, that way I could see what he was doing,” Ragan said. “(I knew) that he wasn't a cop but didn't know if he was pretending to be a cop or gonna try to rob me or whatever you have it.”

“When I disarmed him, the unmarked unit came in and we placed him under arrest,” Ragan told KFSM.

O’Hara told investigators that he was tired of things getting stolen in the area and people speeding and “wanted to clean up the area.”

“He claimed it was his first time doing it, but he seemed like he had done it before," Ragan said, adding that O’Hara had a 9 mm pistol on his person and another gun in his vehicle. According to O’Hara, he had a concealed carry permit.

O’Hara faces a felony charge for impersonating a police officer and was booked in jail before posting bond.