Mexico's federal police chief, Enrique Galindo, has been sacked following allegations police killed at least 22 suspected members of a drugs cartel.