Hamas’ & Hezbollah’s writ is to kill Jews. Iran supplies to best it can arms and money. Hamas’ and Hezbollah’s job is to strike where they think best. Iran does not need to give detailed orders or any orders at all. Foolish to think its hierarchical!
And historically, Hamas has been a Sunni Islamic faction, not Shi'ite.