Deal aims to end violence in northern Lebanon