MOSCOW - Philippine President Rodrigo Duterte told Russian leader Vladimir Putin that the Philippines needs modern arms to fight Islamic State and that he expected Russian support.
Duterte also said he had to halt his visit to Moscow and return home as there was still fighting with ISIS's militants there.
Putin said he hoped the conflict in the Philippines would be resolved "with minimum losses". He also said there were the prospects for economic and military cooperation between Moscow and Manila.
Putin met Rodrigo Duterte late Tuesday, instead of meeting on Thursday as originally planned.
Duterte earlier declared martial law in southern Mindanao province after fighting raged in southern Marawi City between the army and militants linked to Islamic state.
Duterte, a native of Mindanao, cancelled a meeting set for Wednesday with Russian Prime Minister Dmitry Medvedev.
Two soldiers and a policeman were killed and 12 wounded amid chaos in Marawi, a predominantly Muslim city of about 200,000 people, where members of the Maute militant group took control of buildings and set fire to a school, a church and a detention facility.
"The government is in full control of the situation and is fully aware that the Maute/ISIS and similar groups have the capability, though limited, to disturb the peace," presidential spokesman Ernesto Abella told a news conference in Moscow.
The Maute and Abu Sayyaf militant groups have pledged allegiance to Islamic State, also known as ISIS, and have proved fierce opponents for the military as Duterte seeks to crush extremists and prevent radical Islamist ideology from spreading in the Philippines.
Abella said the militants "have shown no hesitation in causing havoc, taking innocent lives and destroying property."
Duterte has warned repeatedly that Mindanao, an impoverished, restive region the size of South Korea, was at risk of "contamination" by Islamic State fighters driven out of Iraq and Syria.
Brigadier General Rolando Bautista, commander of the Philippines' First Infantry Division, said security forces were trying to locate militants who had scattered everywhere and were blocking reinforcements from arriving.
"There are more or less 100, divided into groups of 10 in different locations," Bautista told news channel ANC.
"Since they are advocating ISIS ideology they have to show ISIS that they are a force to be reckoned with."
Defense Secretary Delfin Lorenzana said and some 1,000 soldiers would be in Marawi by morning, but warned civilians to stay in their homes.
"There are Maute snipers all around, so the troops are still holding and elements have already joined," he said.
The purpose of Tuesday's raid was to capture Isnilon Hapilon, a leader of the Abu Sayyaf group which is notorious for piracy and for kidnapping and beheading Westerners. The U.S. State Department has offered a bounty of up to $5 million for Hapilon's arrest.
The military has not explained how the raid on an apartment turned into urban warfare that was still raging 12 hours later.
The incident highlights the challenges facing Duterte, who has pleaded with separatists and moderate Muslims in the predominantly Catholic nation to shun Abu Sayyaf and Maute.
He has threatened several times to declare martial law in Mindanano, and deliver a "harsh" crackdown. Martial law will apply for 60 days.
The government has blamed the Maute for a bombing in September 2016 at a street market in Duterte's hometown of Davao City, which killed 14 people and wounded dozens.
Maute fighters took over a disused building in the region in November and endured five days of military air and ground assaults before fleeing, with 61 fighters killed. - with a report from Doris Bigornia, ABS-CBN News