Former SD Sheriff's Captain pleads guilty to illegally trafficking firearms