The U.S. embassy in Iraq on Friday blamed Iran-linked groups for an attack this week on a U.S. diplomatic compound at Baghdad airport, warning it retained the right to self-defense.