By Yesim Dikmen and Michelle Nichols
ISTANBUL/UNITED NATIONS, New York (Reuters) - Ukraine, the United Nations, and Turkey hailed progress at talks aiming to resume Black Sea grain exports blocked by Russia and ease the risk of starvation faced by millions, but an end to the war remained far off as heavy shelling continued on Thursday.
Turkey's Defense Minister Hulusi Akar said on Wednesday an agreement would be signed next week. Ankara will ensure the safety of shipments in transit and the parties will jointly check grain cargoes in ports, he added.
But U.N. chief Antonio Guterres said more work was needed before a deal was finalied.
"We have seen a critical step forward," Guterres told reporters in New York. "We still need a lot of goodwill and commitments by all parties," he said.
Ukrainian President Volodymyr Zelensky appeared optimistic in late-night comments: "The Ukrainian delegation has reported to me that there is progress. In the coming days we will agree on the details with the U.N. secretary general."
Turkey and Ukraine said a joint coordination centre with Russia and the United Nations would be set up.
"Its task will be to carry out general monitoring and coordination of safe navigation in the Black Sea," Zelensky's chief of staff Andriy Yermak said on Twitter.
Russia's defense ministry did not immediately offer comment.
Apart from being major global wheat suppliers, Russia is also a large fertilizer exporter and Ukraine a significant producer of corn and sunflower oil.
A deal is seen as vital for food security, notably among developing nations, and for stabilizing markets.
But Guterres warned there was still "a long way to go" before there would be peace talks to end the war.
"Monsters, Simply Monsters'
Ukrainian officials said there had been sustained shelling across several cities.
Russian forces targeted a number of civilian facilities in the southern city of Mykolaiv on Thursday, Mayor Oleksandr Senkevych said on the messaging app Telegram. Rescuers and emergency teams are already working on the ground, he added.
In the industrialised Donbas region of eastern Ukraine, Russian missiles hit the industrial zone of Kramatorsk and electricity was cut in some parts of the city, Mayor Oleksandr Honcharenko wrote on Facebook.
A Russian strike destroyed a school in Donbas on Wednesday. No casualties were reported.
Russia denies deliberately attacking civilians.
"All this makes me feel sick ... Monsters, simply monsters, there is no other word. A school - if they themselves are ok to grow up stupid, why bomb our schools?" said 60-year-old resident Oleksandr.
Daria, 15, told Reuters that students were hoping the war would be over soon and they would go back to school, but "now, there is nothing to go back to".
Russian media reported Ukrainian armed forces launched a fresh missile attack in a strategically important Russian-held southern area of Kherson that Kyiv is hoping to retake.
RIA news agency quoted the Russian-backed administration of Kherson region as saying Russian air defenses shot down five missiles fired at the town of Nova Kakhovka, while the debris of two of the missiles fell near a factory.
"According to preliminary information, there's been another hit on a Russian munitions plant, at Sokil," Serhiy Khlan, an adviser to the Ukrainian head of Kherson province, wrote on Facebook.
On Wednesday TASS quoted a separatist official, Vitaly Kiselyov, as saying Russian and proxy forces had entered the town of Siversk in Donetsk province and could take it in a couple of days.
Donetsk and Luhansk comprise the Donbas region.
Russia had not conducted any new assaults on the frontline that includes Siversk, but the town had been fired on by artillery, Ukraine's armed forces said.
Reuters could not verify the battlefield accounts.
Possible Breakthrough
Russia's February 24 invasion of Ukraine has caused Europe's biggest conflict since 1945. Millions have fled, thousands have been killed while cities have been reduced to rubble and fears of a wider conflict in the West have grown.
The Kremlin says it is engaged in a "special military operation" to demilitarise and "denazify" Ukraine. Kyiv and its Western allies reject that as a false pretext and accuse Russia of exacerbating a global food crisis and fuelling inflation.
Moscow has blamed Ukraine, saying it refuses to remove mines that it scattered around its coastline to protect itself from Russia's attack and that threaten shipping.
The Kremlin also says Western sanctions make it harder for Russia to fund and insure its own maritime freight services.
Russia's Interfax news agency quoted Pyotr Ilyichev, head of the international organizations department at Russia's foreign ministry, as saying Russia wanted to control and inspect grain vessels itself to rule out arms smuggling.
Before progress in grain export talks was announced, diplomats said the plan under discussion included Ukrainian vessels guiding grain ships through mined port waters; Russia agreeing to a truce while shipments move; and Turkey - supported by the United Nations - inspecting ships to allay Russian fears of weapons smuggling.
(Additional reporting by Ece Toksabay, Ali Kucukgocmen and Reuters bureaus; writing by Costas Pitas and Himani Sarkar; editing by Cynthia Osterman and Stephen Coates)