The airstrike also wounded at least 33 workers, mostly from Niger and Bangladesh
An airstrike slammed into a biscuit factory in Libya's capital Tripoli on Monday killing at least seven workers, including five Bangladeshis, health authorities said.
Tripoli has been the scene of fighting since April between the self-styled Libyan National Army, led by Gen. Khalifa Hifter, and an array of militias loosely allied with the U.N.-supported but weak government which holds the capital.
The Tripoli-based health ministry said the airstrike took place in the capital's Wadi el-Rabie neighborhood, south of the city center where fighting has been raging for months.
Malek Merset, a spokesman with the ministry, told The Associated Press that the dead included five workers from Bangladesh, and two Libyan nationals.
The airstrike also wounded at least 33 workers, mostly from Niger and Bangladesh, who were taken to nearby hospitals for urgent treatment, Merset said.
Footage shared online showed wounded people with bandages and blood on their legs on stretchers before being taken by ambulances to hospitals.
Fighting for Tripoli has stalled in recent months, with both sides dug in and shelling one another along the city's southern reaches. The months of combat have killed hundreds of people and displaced thousands.
Libya has been divided into rival governments, with Tripoli controlling parts of the country's west, and a rival government in the east aligned with Hifter's force. Each side is backed by an array of militias and armed groups fighting over resources and territory.
East Libyan authorities said on Sunday a Libyan Airlines aircraft had been seized by officials at the airport in the western city of Misrata. The Tripoli-government controls the airport, and militias seen as its political allies occupy the city.
Ezz al-Din al-Mashnoun, a spokesman for Libyan Airlines, said in a statement that the aircraft is the only functioning plane used by the airline in the eastern region.
The passenger jet was undergoing routine maintenance and was due to take off Sunday for the airport in Benghazi.
Hatem al-Oreibi, a spokesman for the eastern Libyan administration, demanded that the Misrata airport return the plane within hours or "face escalatory measures," without elaborating.
The seizure of the plane came days after east Libyan authorities had begun stopping any flights coming from Misrata, alleging security reasons.
Misrata airport is the only functioning airport in western Libya. Tripoli-allied militias have used it as an airbase during the conflict.
A spokesman for the U.N.-supported government did not immediately answer calls seeking comment.
The rise in violence this past year threatens to plunge Libya into another bout of violence on the scale of the 2011 conflict that ousted and killed longtime dictator Moammar Gadhafi.