The alleged crooked captain was caught after selling a kilo of cocaine to an undercover agent for $10,000, police said.