An armed group loyal to Libya's National Unity government says it has arrested a gang accused of kidnapping and torturing Sudanese migrants.