Intelligence agencies, FC foil terror bid