Nigerian authorities have secured the release of 100 children kidnapped from a Catholic school last month.