A coalition of militias backed by Iran claimed credit for the attack. It comes amid the conflict in the Middle East that the U.S. has been working to keep from spreading throughout the region.