Five staff and 39 foreign detainees at a Tokyo immigration facility have tested positive for COVID-19.