Muhammad didnt command to kill those who were of a different race than you, he commanded to kill the unbelievers.
Also, Ive heard that though Malcolm X converted to Islam, he eventually left it. Am gonna look that up now.
Malcolm X was rejected by the Nation of Islam after exposing Elijah Muhammad infidelity. Some say Farrakhan was in on his murder but we will probably never know