Taliban victory 'morale boost' for extremists: MI5 chief