NUSA DUA, INDONESIA -- President Joe Biden said Wednesday it was 鈥渦nlikely鈥 that a missile that killed two in NATO-ally Poland was fired from Russia, but he pledged support for Poland's investigation into what it had called a 鈥淩ussian-made鈥 missile.

Biden spoke after he convened an 鈥渆mergency鈥 meeting of the Group of Seven and NATO leaders in Indonesia Wednesday morning for consultations on the explosion that killed two people in the eastern part of Poland near the Ukraine border.

鈥淭here is preliminary information that contests that," Biden told reporters when asked if the missile had been fired from Russia. 鈥淚t is unlikely in the lines of the trajectory that it was fired from Russia, but we鈥檒l see.鈥

Three U.S. officials said preliminary assessments suggested the missile was fired by Ukrainian forces at an incoming Russian missile amid a crushing salvo against Ukraine鈥檚 electrical infrastructure Tuesday. The officials spoke on condition of anonymity because they were not authorized to discuss the matter publicly.

Ukraine still maintains stocks of former Soviet and Russian-made weaponry, including the S-300 air-defence missile system.

The president, who was awakened overnight by staff with the news of the missile explosion while in Indonesia for the Group of 20 summit, called Polish President Andrzej Duda early Wednesday to express his 鈥渄eep condolences鈥 for the loss of life. Biden promised on Twitter 鈥渇ull U.S support for and assistance with Poland鈥檚 investigation,鈥 and 鈥渞eaffirmed the United States鈥 ironclad commitment to NATO.鈥

Biden said that he briefed the allies on his conversations with Duda and NATO Secretary General Jens Stoltenberg and that there was 鈥淭otal unanimity among the folks at the table鈥 to support Poland鈥檚 investigation into the explosion.

鈥淚鈥檓 going to make sure we find out exactly what happened," Biden said. "And then we鈥檙e going to collectively determine our next step as we investigate.鈥

Meeting at a large round table in a ballroom in his hotel, the U.S. president hosted the leaders of the G7, which includes Canada, France, Germany, Italy, Japan, the United Kingdom and the European Union, along with the president of the European Council and the prime ministers of NATO allies Spain and the Netherlands.

Biden held a separate meeting later with new British Prime Minister Rishi Sunak, in their first extended conversation since he took office last month.

鈥淲e鈥檙e going to continue to support Ukraine as long as Russia continues their aggression," Biden said alongside Sunak, adding that he was 鈥済lad we鈥檙e on the same page鈥 in backing Ukraine.

A statement from the Polish Foreign Ministry identified the missile as being made in Russia. But Poland's president, Duda, was more cautious about its origin, saying that officials did not know for sure who fired it or where it was made. He said it was 鈥渕ost probably鈥 Russian-made, but that is being still verified. If confirmed, it would be the first time since the invasion of Ukraine that a Russian weapon came down on a NATO country.

Biden also said the leaders condemned 鈥渢he latest series of Russian missile attacks,鈥 referring to the confirmed Russian strikes in recent days that have targeted Ukraine's power grid and caused widespread blackouts.

鈥淭he moment when the world came together at the G20 to urge de-escalation, Russia continues to escalate in Ukraine, while we鈥檙e meeting," Biden said. "There were scores and scores of missile attacks in western Ukraine.鈥

Biden and his allies had set out to isolate Russia at the G20 summit and the group's final communique was expected to show that 鈥渕ost鈥 of the nations in the G20 condemn Russia's invasion.

Underscoring the extraordinarily tense situation, CIA Director William Burns was in Kyiv on Tuesday during the barrage of Russian missiles. He remained in the U.S. embassy in Kyiv during the strikes.

Burns briefed Zelenskyy and Ukrainian officials on his meeting in Turkey with the head of Russia鈥檚 foreign intelligence service, according to another U.S. official who spoke on condition of anonymity to discuss intelligence matters.

Burns told Ukrainian officials that he had delivered a U.S. warning to Russia not to use nuclear weapons, the U.S. official said.

In addition to Biden鈥檚 conversations, Secretary of State Antony Blinken held talks with his Polish and Ukrainian counterparts Wednesday, the State Department said.

Army Gen. Mark Milley spoke with Polish Chief of the General Staff Gen. Rajmund Andrzejczak on Tuesday. The Joint Staff said the two generals discussed the explosion in Poland and the loss of life there. He provided no other details.

Balsamo reported from Washington. AP writers Lolita C. Baldor, Nomaan Merchant and Colleen Long contributed from Washington