Risk of small-scale attacks by al-Qaeda and its allies is rising, officials say