An army spokesman said soldiers serving in the state of Benue were attacked during routine operational work.
Gunmen have killed 10 soldiers and an officer in the central Nigerian state of Benue.
“The Nigerian army operating in Benu State was attacked,” army spokesman Mohammad Irima said in a statement on Friday.
The military says it is trying to find the culprits.
It was not immediately clear who was behind the attack, but Benu is part of Nigeria’s central belt, where gangs have taken up arms after years of communal clashes between pastoralists and farmers.
Last month, Benueur Governor Samuel Ortom said he had escaped an attack by armed shepherds while traveling in a caravan.
Fatal clashes Nomadic Fulani herdsmen and farmers on land, pasture and water have plagued parts of central Nigeria for years.
Nigeria’s security forces have been fighting on several fronts – armed insurgency in the northeast for more than a decade, criminal gangs in the northwest and a separatist militia in the southeast.