US Pentagon chief Pete Hegseth had said that Nidal Hasan would be executed by firing squad and that it would be done "in public."