Hezbollah confirmed that one of its senior commanders, Fuad Shukr, had been killed in an Israeli strike on Beirut, and Hamas accused Israel of killing its political leader, Ismail Haniyeh, while he was in Tehran for the inauguration of Iran’s new president.