Talks aim at ending nearly two years of war, with Israel’s leader expressing hope that captives would be released.