Libyan air force jets have bombed a Greek-operated oil tanker chartered by Libya’s national oil company, killing two crew members.
A Libyan military spokesman told the BBC that the ship’s movements at the port of Derna had aroused suspicion.
The oil company rejected this, saying the ship was delivering fuel to industrial facilities there and the authorities had been kept informed.
Derna has been controlled by Islamist militants for the past two years.
The Libyan military attacked the port several times last year in an attempt to weaken militant groups there.
The military spokesman, Colonel Ahmed Mesmari, said the tanker had been targeted because it had failed to submit to an inspection before entering the port.
He said the vessel was supposed to dock at a power plant in Derna but instead “took a different route”, entering a “military zone”.
“We asked the ship to stop, but instead it turned off all its lights and would not respond so we were obliged to strike it.
“We bombed it twice,” he said.
Libya’s National Oil Corporation said the tanker had picked up 13,000 tonnes of heavy fuel oil in Brega, a port south of Libya’s second city, Benghazi, which it was due to deliver to a power plant and water purification facility in Derna.
It said the vessel was attacked before it could enter the port to unload its cargo.
There were 26 crew members on board the ship, Araevo, including nationals from the Philippines, Greece and Romania.
Two were injured in Sunday’s attack, in addition to those killed.