TDEC official demoted after terrorism remark