Sir Iain Duncan Smith said the blunder demonstrates ‘how ill-prepared we are to deal with this major security threat’