The intelligence service also warned of a renewed threat from so-called Islamic State and a ‘reckoning’ to come from the conflict in the Middle East.