LOUISVILLE, Ky. (WDRB) -- Shepherdsville Police responded Saturday to a call about a man exposing himself at Awesome Flea Market just off I-65.

"Sgt. Paully located the subject, [and] while he was interviewing him, he became very disorderly," said Maj. Mike O'Donnell with the Shepherdsville Police Department.

Ryan Hayes refused to follow commands. So Paully pulled out his handcuffs, but that's when things took a dangerous turn.

"He ended up on the ground," O'Donnell said. "They were on the ground together struggling."

O'Donnell says the 24-year-old Bardstown man started resisting arrest. Paully's radio didn't work in the building, so he couldn't call for backup. 

But help came anyway, when two men jumped in.

"Two good Samaritans lended a hand and assisted Officer Paully in getting the suspect handcuffed," O'Donnell said.

With Hayes finally in custody, the men took off before Paully could get their names. And now the department is taking to Facebook to find the good Samaritans and thank them.

"Usually we're looking for the bad guys, but in this instance, we are trying to identify the two gentleman," O'Donnell said. "I don't believe it was a life or death struggle, but it can easily turn into that."

O'Donnell admits the good Samaritans took a big risk to help the officer, but he's very glad they did.

"We can't do our job without the help of the community, whether it's tips or whether it's taking someone into custody," O'Donnell said. "We need their help.

"We're grateful when we do get their help. And in this case, we needed it."

Hayes was charged with disorderly conduct and resisting arrest. 

Copyright 2017 WDRB Media. All rights reserved.