More than 130 schoolchildren kidnapped by gunmen in northwestern Nigeria earlier this month were released unharmed on Sunday, officials and the army said.