The point of the assassination was to be a provocation for retaliation to be used as a pretext for war against Iran.
I wish people would stop referring to this as an assassination. He was a military officer in a combat zone actively engaged in operations against American forces. He was most certainly a legitimate military target.