While visiting a militia in that "friendly" nation. Said militia was attacking US troops with Iranian assistance. So I don't find it all that shocking. You want to help people kill our troops? Don't be surprised if we have something kinetic to say about that.
The Iraq War can be reasonably argued to be the worst “destabilization” in the region in the new century. Anything Iran has done _in its own region_ pales in comparison, and Iraq is indeed a “friendly” nation to Iran in the sense of being an ally. Two days after the assassination, the Iraqi parliament voted for a resolution that urges the government to work on expelling US troops from Iraq. That’s not massively concrete but AFAIK is representative of the Iraqi govt’s feelings on who is a greater offender in “destabilizing the region”.
So when someone does it to the US it is also totally fine?