Reviled abroad but beloved at home, the Quds force leader and Instagram star used military prowess and diplomatic heft to extend Iranian power throughout the Middle East