Hundreds of chained captives released from Nigerian school