Federal authorities have charged two suspects in connection with what the FBI director described as a possible terror plot.