A former US Marine talked with an undercover FBI employee about carrying out a terror attack over the holidays at Pier 39, a busy shopping and tourist area in San Francisco, according to an affidavit filed in US District Court in California.