Independence Day terrorist attack foiled