The deal promises to end a conflict across the Israel-Lebanon border that has killed thousands of people since it was ignited by the Gaza war last year.