Beirut's military commander meets Pakistan’s army chief as Lebanon emerges as a key issue in efforts to end the regional conflict