Former police captain pleads guilty to misconduct