Libya has been divided since a NATO-backed uprising toppled longtime dictator Muammar Gaddafi, who was later killed, in 2011. A UN-supported government is based in Tripoli, and a rival administration is located in the east.
The strike severely damaged the Merkury and ignited a fire at the base, officials said. The fire was later extinguished.
The ship's 16 crew members were evacuated onto a nearby Russian vessel. Two medical sources told Reuters that no deaths had been reported, but there were injuries.
The eastern government said the ship had stopped at Benghazi for fuel and supplies on its way back to Russia under maritime cooperation agreements with the eastern-based authorities. The statement gave no further details on the vessel or its cargo.
A preliminary investigation indicated a suspected drone attack, the government said. Sunday's incident remained under investigation, and authorities said they were coordinating with Russian counterparts to determine the source and who was responsible.
A joint investigation was launched with Russia to"uncover the circumstances of the attack, its source, and the party behind it,"the statement said.
The eastern-based authority said port and naval base facilities, including warehouses, were safe. It said normal operations would resume once the fire was brought under control and the site secured.
The government condemned the suspected attack as a violation of Libya's sovereignty and a threat to maritime safety. It said it would take legal and diplomatic measures against anyone found responsible.
GNS condemned the attack on a ship inside a Libyan port, calling it a violation of maritime safety and an attack on sovereignty. It said Libya was not a party to the Russia-Ukraine war, or to any other conflict beyond its borders.
No group immediately claimed responsibility for the attack. There was no immediate comment from either Russia or Ukraine.
The Almasar satellite television channel said naval and air forces destroyed at least 12 other sea drones off the Mediterranean city. Officials said at least four drones were intercepted and destroyed, while two hit the warship.
Naval analyst HI Sutton said the attack was probably conducted by sea drones, after a photograph of one emerged that appeared to have been taken off the Libyan coast. The drone, he said,"is also likely the type used in the subsequent attack".
Initial reports and footage suggested the Merkury was struck from above, potentially by a drone launched no more than a few kilometres from the target in port. Videos posted on social media and geolocated by BBC Verify showed the ship engulfed in flames and smoke while it was still dark.
On Sunday evening, local media said another sea drone hit a commercial vessel off the port of Benghazi in a separate attack.
Finland's military said last week it had detected a strike on a Russian warship in the same area during Ukrainian drone attacks.
Russia is close to the Benghazi authorities that control eastern Libya. The oil-rich nation remains a focal point for a long-running rivalry between Russia and the West. Benghazi is more than 2,000 km (1,243 miles) from Moscow.
Harchaoui said Haftar would take the attack as a personal slight."They will ask questions about who is hosting the Ukrainians,"he said.