A dispute between Ukraine and Russia in which each accuses the other of violating laws of the sea escalated sharply Sunday when the Ukrainian navy said the Russian military opened fire on several of its ships, wounding six sailors and seizing the vessels.

The incident in and around the Kerch Strait, a narrow body of water separating the Black and Azov seas, marked a pivot in the undeclared war, now nearly five years old, between the former members of the Soviet Union.

The Ukrainian military has been fighting two separatist movements in eastern Ukraine that are clearly backed by Moscow, though the Russian government has formally denied any direct military intervention.

Story continues below advertisement

That is in contrast to Sunday’s events, which unfolded as a direct confrontation between Russia and Western-backed Ukrainian armed forces at sea.

The episode also threatened to shake up Ukraine’s fragile internal politics.

At a midnight meeting, Ukraine’s National Security and Defense Council said it would ask Parliament to declare a state of martial law. That raised alarms that President Petro O. Poroshenko could use the incident to delay a presidential election scheduled for March that polls suggest he is unlikely to win.

“This whole story grows more complicated by the fact that during martial law, it is forbidden to hold presidential, parliamentary or local elections, as well as strikes, protests, rallies and mass actions,” Mustafa Nayyem, a member of Parliament, posted on Facebook.

The Ukrainian navy left little ambiguity in asserting that its ships had been attacked. “Fighter jets used weapons against the naval ships of the armed forces of Ukraine,” the navy’s statement said.

Russia’s Federal Security Service, a law enforcement agency known as the FSB that oversees the coast guard, initially issued a statement saying the Ukrainian ships had, after an altercation, altered course to return to a Ukrainian port. But it later said that Russia had detained the vessels and that it was providing first aid to three sailors.

The FSB said in statement carried by Russian news agencies that the Ukrainian naval convoy of two small warships and a tugboat had entered Russian territorial waters near Crimea on Sunday in a “provocation.” The Russian coast guard responded by trying to escort them out of the area, it said.

Story continues below advertisement

“Their goal is clear,” the FSB said of the Ukrainian naval ships, “to create a conflict situation in the region.”

The Russian reports said the Ukrainian ships disregarded announcements that the Kerch Strait was temporarily closed.

The portion of the Black Sea where the confrontation unfolded is a swirl of contested borders and disputed rights to access through the strait.

After annexing the Crimean Peninsula in 2014, Russia claimed territorial waters off the peninsula’s coast that Ukraine does not recognize.

Ukraine claims a right to patrol in the entire Sea of Azov under a treaty with Russia designating the sea as shared territorial water. The treaty was signed long before relations curdled after street protesters overthrew a pro-Russian leader of Ukraine in 2014.

Ukraine says Russia’s actions have violated the treaty, as well as the U.N. Law of the Sea, which should guarantee access through the strait. Russian officials said the Ukrainian ships were manoeuvring dangerously, requiring the strait to be temporarily closed for safety.

Story continues below advertisement

The North Atlantic Treaty Organization, in a statement carried by Ukrainian media, came down on Ukraine’s side in the dispute. “NATO fully supports the sovereignty of Ukraine and its territorial integrity, including its rights to navigation in its own territorial waters,” said the statement, which was carried in newspaper Ukrainska Pravda.

Photographs and videos posted online showed a Russian cargo ship moored in the shipping channel of the strait, blocking it, and fighter jets buzzing over the waterway.

Blocking the strait, Ukrainian officials say, has been Russia’s intent since earlier this year, when tensions escalated over Ukrainian shipping into and out of the Sea of Azov, home to important steel and coal ports.

Earlier in the day, a Russian coast guard vessel rammed one of the Ukrainian ships, the tugboat, according to the Ukraine navy. The small Ukrainian convoy was sailing from Odessa in the Black Sea to Mariupol in the Sea of Azov.

Ukraine’s Parliament speaker, Iryna Gerashchenko, said on Facebook that Ukraine had asked the U.N. Security Council to review the Kerch Strait incident. “We have a direct armed aggression of the Russian Federation against Ukraine,” she said. “Our marine space is being attacked”

Tensions in the Sea of Azov escalated this spring after Russia completed a bridge across the strait, which links the Crimea Peninsula and mainland Russia. The Russian coast guard began inspections of Ukrainian commercial traffic to the coal and steel ports of Mariupol and Berdyansk.

Story continues below advertisement

Since then, Ukrainian officials say, Russia has moved some naval vessels, including warships, from its Caspian Flotilla to the Sea of Azov and inspected more than 200 foreign merchant ships, mostly Ukrainian.