I think you are not entirely accurate. Beirut lies in the north of the country, is urban and was "liberated" from Syrian control less than a year ago.
The terrorist entity only controls the south and is a minority in its government representation.
That they would create an international incident now and then face retaliation from the IDF in the north is not something anyone could predict. Because it was all orchestrated in Tehran.
It isn't news that Iran runs the hezzies. It also isn't news that war strategies are not real predicatble. Going to what is in essence a terrorist country because the entire country is subjected to retributory attack.