Former HCSO commander pleads guilty