He said some of the militants had been trained in Libya and Syria and were awaiting orders to carry out the assault.
Islamic State has claimed two attacks on Tunisia this year. In March, gunmen killed 21 tourists in an attack at the Bardo Museum in Tunis, and 38 foreigners were killed at a beach hotel in Sousse by another gunman in June.
More about: