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