Another Afghan-related terrorist attack was foiled one day before two National Guardsmen were shot in Washington, D.C., federal authorities said Saturday.