Agreement ends more than a year of fighting between Hezbollah and Israeli military.