The Nigerian military has confirmed that six of its soldiers died in a battle in the northeastern state of Borno. The army is reported to have killed more than 30 insurgents.