Libya booked more than 5,000 migrants, refugees and asylum seekers in a crackdown over the past week, housing them in crowded, unsanitary detention centres
At least six migrants were shot dead at a Tripoli detention centre on Friday, the head of the UN migration agency's Libya mission said, as many reportedly escaped from the facility and others gathered in nearby streets.
Overcrowding triggered chaos at the Ghot Shaal centre, with people sleeping in the open and different security forces present, said Federico Soda, the Libya mission head for the International Organisation for Migration (IOM).
"Shooting started," he said, adding that at least six people were killed.
Libyan security forces have cracked down on migrants, refugees and asylum seekers over the past week, detaining more than 5,000.
There are hundreds of thousands of migrants in Libya, some seeking to travel onwards to Europe and others coming to work in the major oil exporter.
They routinely face violence in a country that has had little peace for a decade, with many held in detention centres that United Nations refugee agency UNHCR says are crowded and unsanitary, and where Amnesty International on Friday said they face torture and sexual abuse.
Libya's Government of National Unity was not immediately available for comment.
The country has been in crisis since the 2011 Nato-backed uprising against Muammar Gaddafi and much of it is controlled on the ground by local armed forces that operate independently of the government.
Numerous videos posted on social media on Friday, which Reuters could not immediately authenticate, showed dozens of people pouring through a gap in a fence, and larger numbers marching through Tripoli streets.
Two residents said they had seen large numbers of migrants running through the streets in that area.
Soda said security forces in Tripoli had detained at least 900 migrants later on Friday, likely including many of those who had fled the detention centre.
A Reuters journalist saw dozens of migrants sitting on the floor surrounded by guards and said there was a very heavy security presence around the area and there had been sporadic sounds of shooting.
UNHCR said earlier on Friday it was increasingly alarmed about the situation for migrants and refugees in Libya after more than 5,000 were arrested in the recent crackdown.
"The raids, which also involved the demolition of many unfinished buildings and makeshift houses, have created widespread panic and fear among asylum seekers and refugees in the capital," it said in a statement.
On Monday UN investigators said abuses against migrants and refugees in Libya were "on a widespread scale... with a high level of organisation and with the encouragement of the state... suggestive of crimes against humanity".