Since the war in Gaza began after Hamas’ surprise attack on Israel on Oct. 7, people across the Middle East have feared it could set off a second war between Israel and Hezbollah, the powerful Lebanese militia, and ignite a broader regional conflagration.