Ex-officer pleads guilt