AI poses national security threat, warns terror watchdog