The United Nations refugee agency evacuated 325 African refugees on Wednesday from Qasr Ben Gashir detention center in southern Tripoli because of deteriorating security and escalating violence.

The refugees — mainly Eritrean, Sudanese and Nigerian — were taken to a detention center in Zawiya, a town west of the Libyan capital, where they were at "reduced risk," the UNHCR said in a statement.

The latest evacuation, which followed a protest and violence at the facility on Tuesday that left 12 injured inmates needing hospital care, brought to 825 the number of refugees and migrants transferred farther from clashes in the past two weeks. The agency called for the release of the remaining 3,000 in custody.