Thailand has sacked one of its most high-profile police officers over his alleged involvement in illegal gambling and financial fraud.