The agreement came during talks between Iran and the United States following a preliminary deal reached last week to end the war across the Middle East, including in Lebanon.