Trump sacks US military's top-ranked officer