JERUSALEM — Israel and Lebanon’s Hezbollah have agreed to a cease-fire that will take effect Wednesday morning at 4 a.m.