Have the damage been assessed and any casualties reported from the occupants in those facilities?
That being said, the take-away from this attack is, since Israel indirectly attacks Iran in a third country (Syria) or through Mossad agents inside Iran, the Iranians have decided to respond in a similar fashion in a third country (in this case Iraq) as well.
But then the question is has the relationship between Iraq or Kurdistan regional govt (KRG) deteriorated to the point where Iran had to launch an attack from its territories on facilities inside Iraqi or KRG's territories?
Apart from few other reasons ...... the following may be the primary reason for mullahs to act crazy.
"The incident took place as talks between political parties on the Iraqi government formation are ongoing. Notably, the Iraqi Parliament on 5 March voted to reopen the candidacy for the Iraqi Presidency. This vote enabled the KDP to submit a new candidate for the presidency. As long as the Tripart Alliance (the KDP, Sadrist movement, and major Sunni parties) holds, it is assured that a KDP candidate will be confirmed as the next president. This will then allow the Tripart Alliance to both propose and confirm the next prime minister without any support from Shia parties (other than the Sadrists). As negotiations continue, there remains an increased risk of Shia militant activity, reflecting an effort by Shia militant factions to use force to influence the negotiations."