Two Oklahoma City police sergeants accused of a drive-by shooting have resigned.

Diron Carter, 31, and Michael W. McKethan, 36, were charged with a felony: using a vehicle to facilitate the intentional discharge of a firearm.

Prosecutors said they agreed to dismiss the charge in exchange for the officers’ resignations.

Prosecutors alleged the two were driving away from Night Trips, a strip club in Oklahoma City, about 2 a.m. June 16, 2009. Prosecutors alleged Carter fired in the direction of others who left the club.

Carter later told fellow officers the shooting was accidental, police reported. Both officers were off duty at the time. No one was injured.

Prosecutors reached an agreement in the case in part because they had severe witness and evidentiary problems.

McKethan also had been accused in a separate felony charge of insurance fraud in 2007. Prosecutors alleged he beat a Chevrolet Tahoe with an ice chest during a 2007 fight with his then-wife and later claimed vandals did the damage. Farmers Insurance Co. paid $2,896 to a body shop for repairs, police reported.

Prosecutors dropped that charge, too, because McKethan agreed to pay restitution.