His visit came days after mediators, including the United States, expressed renewed optimism a deal was near