According to the statement, the suspects are currently undergoing further investigation.
He said the rescue followed a coordinated special operation conducted on June 6 across.
He said the terrorists launched the attack at about 3:00 a.m. amid poor weather conditions.
Mr Onoja said the operations significantly degraded criminal capabilities.
The military said its precision airstrike around Kirta and Arina Ciki killed several terrorist commanders, including Khalifa Umar, a member of the ISWAP Shura Council.
The Nigerian Air Force says it killed several terrorists during a counter-terrorism air campaign in Borno.
Mr Onoja said the troops also repelled multiple attacks, disrupted cross-border logistics and recovered arms and ammunition in Borno and Yobe states.
The Nigerian military advised residents to remain vigilant throughout the festive period and avoid unnecessary exposure to security risks.
The defence spokesman said troops also recovered several arms and ammunition, including AK-47 rifles, G3 rifles, machine guns, and other combat equipment.
Brig.-Gen. Beyidi Martins, a sector commander, disclosed this while briefing journalists on Tuesday in Damaturu.
