Donald Trump has ordered a firing squad to execute an ex-US army psychiatrist who killed 13 people in Texas, the Pentagon said.