UN calls for release of detainees