The state security commissioner says the troops were attacked before forcing the assailants to retreat.
At least 34 people were killed and seven injured after gunmen attacked a village in Kaduna state, northwestern Nigeria.
“Unidentified gunmen attacked Madamai village in Kaura… 34 residents have been confirmed dead following the attack. Seven others were injured, ”State Security Commissioner Samuel Aruwan said Monday, adding that the attack took place Sunday night.
The troops came under fire before forcing the assailants to retreat after an intense exchange, he said.
Aruwan added that two suspects were being questioned in connection with the attack.
Also on Sunday, gunmen attacked a church in the Kachia district of Kaduna state.
“A life was lost and some worshipers were seriously injured,” Aruwan said in a separate statement.
Criminal gangs known locally as bandits have terrorized northwestern and central Nigeria for years, but have grown more brazen in recent months and the army has renewed its operations in the region.
These bandits raid villages, steal livestock, kidnap for ransom and burn houses.
The military began a campaign against them earlier this month and northern states have imposed restrictions on movement and trade, as well as a telecommunications blackout to try to stop them.