Explosions were seen on the corvette Merkury, which was commissioned in 2023, at the Benghazi naval base on Sunday.
Ukrainian President Volodymyr Zelenskiy said on Monday the attack involved seven domestically-made naval drones.
Zelenskiy said a second target, which was also hit, was the Russian dry cargo ship MV Angara, which he said Russia used to transport weapons.
"We continue operations in designated waters," Zelenskiy said on Telegram messaging app.
Zelenskiy added that a Russian Ka-27 combat helicopter was also destroyed along with the corvette.
The Merkury attack inflicted minor injuries to 10 people including Russians and Libyans.
The Libyan government said the small warship had stopped at Benghazi port to refuel and resupply on its way back to Russia, under maritime cooperation agreements between the two countries.
It condemned the suspected attack as a violation of Libya's sovereignty and a threat to maritime safety, saying it would take legal and diplomatic measures against anyone found responsible.
The government stressed Libya was not a party to any armed conflict beyond its borders, saying its relations with friendly countries were a sovereign matter.
"The Libyan government will not allow Libyan ports, territory or territorial waters to be turned into an arena for settling scores or exporting international conflicts," it said.
Later on Sunday, a commercial vessel flying the Maltese flag was hit by a drone boat off the coast of Benghazi, two Libyan military sources told Reuters.
Libyan naval forces rescued the vessel's crew, the sources said.
Libyan naval and air forces also intercepted more than 20 drone boats off the coast of Benghazi on Sunday evening, according to the sources.
Ukrainian forces have repeatedly targeted Russian warships and naval facilities in the Black Sea since being invaded by its much larger neighbour in February 2022.
In the Mediterranean Sea, Ukraine has confirmed striking a Russian-linked oil tanker with aerial drones in December 2025.
In March 2026, Russia accused Ukraine of attacking a Russian LNG tanker with naval drones launched from the Libyan coast.
On Saturday, a drone strike in the Gulf of Finland set fire to the Russian Sparta II cargo ship bound for the region, which is a key base for Russia's Baltic Fleet.
Hours earlier, a rare air alert sounded in Kaliningrad, a Russian exclave near Poland and Lithuania, according to the local governor, as claims circulated online of drone activity near a major naval base there.
And on Friday - as Russia pounded Ukraine in an apparent retaliation for Kyiv partly destroying the bridge linking Russia to occupied Crimea - three missiles fell in Poland near the Ukraine border.
Polish prosecutors said all three were were Russian Kh-101 missiles.
Polish Prime Minister Donald Tusk described it as an apparent "intentional provocation" by Russia, coinciding with unprecedented Coalition of the Willing military exercises in his country preparing for a possible postwar mission in Ukraine.
NATO would defend every inch of Polish territory, the alliance's Secretary General Mark Rutte said.
"This incident is clearly dangerous - a consequence of Russia's ongoing war against Ukraine," Rutte wrote on X.
Meanwhile, the death toll from a Russian attack on the town of Dymer in Ukraine's Kyiv region climbed to 11 overnight.
Emergency service spokeswoman Viktoriia Ruban said two survivors pulled from the wreckage of a residential building were a seven-year-old boy named Davyd and a 79-year-old woman named Valentyna, who had been trapped for 22 hours.
The governor of Russia's Perm region, Dmitry Makhonin, said several industrial facilities were damaged in an overnight Ukrainian drone attack that killed one person and injured two.
With Associated Press