Zelensky confirmed on Monday that Ukrainian forces carried out the strikes, which hit the missile corvette Merkury, sunk in Benghazi port in the early hours of Sunday, and a merchant ship that Kyiv says belonged to Russia's shadow fleet and carried weapons.
Foreign ministry spokesperson Heorhii Tykhyi said Libya should take its questions to Moscow.
"It is Russian warships and Russian vessels transporting weapons, which regularly arrive there, that created the threat to Libya", he said.
Tykhyi accused Russia of systematically using its military presence and logistics infrastructure abroad, particularly in Africa, to bolster its war effort.
Kyiv, he said, was acting within its right to self-defence and was not "dragging" anyone into the war.
"Ukraine is defending itself against the armed aggression of the Russian Federation. Our actions are an exercise of the inalienable right to self-defence, guaranteed by Article 51 of the United Nations Charter", Tykhyi told journalists, according to Ukrainska Pravda.
International law, he said, does not restrict that right by location, whether the response comes on Ukrainian soil, Russian territory or international waters. He said Ukraine could target Russian warships, cargo vessels carrying military equipment and shadow fleet tankers supplying Moscow.
He sought to reassure Tripoli, saying Kyiv respected Libya's sovereignty and territorial integrity and wanted to deepen bilateral cooperation.
"We stress that Ukraine's actions are aimed at countering Russian armed aggression, not at causing harm to Libya or its people", he said.
Benghazi, Libya's second-largest city, lies in the east of the country, which is controlled by a rival power centre to the Tripoli government and maintains close ties with Russia.
(jh)
Source: PAP