(Adds fire on tanker extinguished, risk of oil spill, details)
SIRTE, Libya May 24 (Reuters) - Warplanes from Libya's official government attacked an oil tanker docked outside the city of Sirte on Sunday, wounding three people and setting the ship on fire, officials said.
It was the third confirmed strike by the internationally recognised government on oil tankers, part of a conflict between competing administrations and parliaments allied to armed factions fighting for control of the country four years after the ousting of Muammar Gaddafi.
The recognised premier Abdullah al-Thinni has been working out of the east since losing the capital Tripoli in August last year to a rival faction. Both sides have been attacking each other with warplanes and thanks to loose alliances with former anti-Gaddafi rebels have also been fighting on several fronts on the land.
"Our jets warned an unflagged ship off Sirte city, but it ignored the warning," the eastern air force commander Saqer al-Joroushi told Reuters.
"We gave it a chance to evaluate the situation, then our fighting jets attacked the ship because it was unloading fighters and weapons," he added.
"The ship now is on fire. We are in war and we do not accept any security breaches, whether by land, air or sea," Jourushi added.
Mohamed El Harari, a spokesman for Tripoli-based state oil firm NOC, said the Libyan tanker Anwar Afriqya owned by NOC had been carrying gasoil for Sirte's power plant. Another oil industry official said the size of the cargo was 25,000 tonnes.
A Reuters reporter could see the tanker docked near Sirte's power plant. Two parts of the tanker were still burning but Mohamed Abdulkafi, a military spokesman in Tripoli, said late in the evening the fire had been extinguished.
A port worker said there had been two attacks on the tanker docked outside the port. First a plane had fired rockets at the tanker's cockpit and crew's cabins, he said. "Then the plane attacked again with guns."
"They attacked after we had discharged the first tank and were readying the second," he said, adding that there was the risk of a gasoil spill.
Sirte's power plant on the western outskirts is controlled by forces loyal to Tripoli. The rest of the city has fallen into the hands of Islamic State which has exploited a security vacuum.
The eastern government had already attacked in January a Greek-operated tanker docking at Derna, killing two seamen and accusing the shipper of sending weapons. NOC had said the tanker was only carrying heavy fuel oil for a power plant.
Two weeks ago forces loyal to the official governmen shelled a Turkish ship off the Libyan coast after it was warned not to approach. One crew member was killed in what Turkey described as a "contemptible attack". (Reporting by Ahmed Elumami, Ayman al-Warfalli and George Libby; Writing by Ulf Laessing; Editing by Andrew Heavens, Greg Mahlich and Andrew Hay)
© Thomson Reuters 2015 All rights reserved