Qasem Soleimani, the Iranian general killed in an airstrike in Baghdad, was in the eyes of the US a shadowy figure who was responsible for the deaths of American troops in Iraq.