Here is the backstory.
The general was the commander of Iran’s elite military and intelligence forces. He was a fierce opponent of ISIS and the American military presence in Iraq. Iraq and Iran were belligerents for generations owing to, among other factors, ancient disputes between the two main branches of Islam, Shiite and Sunni. For generations, Iran’s elites were predominantly Shiite and Iraq’s were predominantly Sunni.