Former president has criticized outgoing Joint Chiefs chairman, suggesting he should be executed for treason.