The army described the July 7 attack on the base as a coordinated assault that was successfully repelled by troops.
The military said troops remain in aggressive pursuit of the fleeing terrorists.
In a statement on Friday, the troops’ spokesman, Mohammed Goni, said troops also dismantled the JAS/ISWAP terrorists’ roadblock on Wednesday.
The military said the hostages were rescued following sustained offensive operations by troops against ISWAP strongholds in the Lake Chad region.
“They have been taken into military custody and are assisting investigators,” said the Nigerian military.
“Nigeria has entered the highest-risk category after forecasts showed parts of Borno could face catastrophic hunger,” the report stated.
According to the report, the plan is designed to lure the soldiers into an ambush where they will be killed and their weapons seized.
“Terror-related deaths are down by 81 per cent since 2015,” Mr Tinubu said. “Over 13,000 terrorists have been neutralised in the past year.”
The Nigerian Air Force says its airstrikes killed scores of terrorists at Metele in the Northern Tumbuns area of the Lake Chad Basin.
AFRICOM’s spokeswoman, Rebecca Heyse, said the joint counter-terrorism operations conducted by Nigerian and U.S. forces significantly weakened ISIS activities in the region.
