The plot, which also included attacking an F.B.I. office in Tennessee, was foiled by a witness who aided the authorities and recorded the defendant and a co-conspirator, court papers say.