Nearly 500 men and boys were rescued from a Nigerian school, where many were chained up and starved.