The United States must act to punish and, by extension, deter militia attacks on US bases in Iraq.