The gang opened fire on the soldiers who were on foot in a forested part of the Jibia district in Katsina state, the sources said, speaking on condition of anonymity.
At least 23 Nigerian troops were killed when they were ambushed by a gang of so-called "bandits" in a remote village in the northwest of the country, security sources have said.
The gang opened fire Saturday on the soldiers who were on foot in a forested part of the Jibia district in Katsina state, the sources said, speaking on condition of anonymity.
"The bodies of 23 soldiers have been accounted for while some are still missing," a military source said.
In the past, the armed gangs, known locally as "bandits", have been involved in cattle rustling and kidnappings, but a number of experts have recently warned that they could be forging ties with militant groups in the region.
Toll could be 'higher than 23'
One militia member said the toll could be "higher than 23", as the search for missing soldiers was underway.
Also on Saturday in the same area, five children were killed and six others injured when a bomb accidentally exploded, a spokesman for Katsina State police said.
It was not clear whether the explosive had been left by the bandits, the statement said.
Katsina State, where President Muhammadu Buhari originates from and where the vast majority of the population lives in extreme poverty, has become increasingly volatile in recent years.
The Nigerian army regularly raids the forests where the armed groups hide, but the number of soldiers is insufficient and villagers organise themselves into civilian militia.
In May, the International Crisis Group, an NGO, warned that the armed gangs could be developing links with militant groups such as Daesh in West Africa Province, which is already very powerful in northwest Nigeria.
The "bandits" have killed around 8,000 people since 2011 and forced more than 200,000 to flee their homes, according to an estimate by Brussels-based ICG.