The FBI says it has foiled a plot to launch an attack on a popular San Francisco tourist destination in the days before Christmas.