Nigerian military has killed 34 terrorists and lost six soldiers during a failed Boko Haram/ISWAP attack in Borno, Nigeria.