WAYNESBURG, Pa. (AP) -- A western Pennsylvania police officer has resigned and been charged with drunkenly breaking into an apartment and beating a man the officer thought was dating his ex-girlfriend.

Twenty-nine-year-old Asa Winters resigned as a Waynesburg officer Monday night and was charged Tuesday with burglary, simple assault and public drunkenness.

The state attorney general is prosecuting because the incident Dec. 31 took place in the Greene County borough where Winters worked.

Prosecutors say Winters mistakenly beat up the wrong man -- the roommate of the man he sought.

Defense attorney Brian Gorman didn't deny the charges, but says Winters is a "good man" who made mistakes not related to his police job.

Gorman is hoping for an "amicable resolution" to the charges and says Winters has "owned up" and "taken steps to correct" his mistakes.

READ MORE Pennsylvania crime news here.