Nigeria's military claims to have destroyed the headquarters of Boko Haram in a north-eastern town, just hours before voters go to the poll in the presidential election.

The Nigerian military said troops had captured the base in Gwoza, killing several terrorists in the operation.

The claimed victory came the day before presidential elections. Warplanes have been bombarding the area for weeks.

But there was no mention of Boko Haram bases in Sambisa Forest where extremists first took nearly 300 schoolgirls kidnapped in Chibok nearly a year ago. The failure of the government and military of President Goodluck Jonathan to rescue the girls created international outrage and continues to dog Nigeria's leader as he stands for re-election.

Nigeria's military, with support of troops and military aircraft from neighbouring countries, in the past two months has retaken dozens of towns from Boko Haram. This comes after months of defeat at the hands of Boko Haram, with soldiers fleeing the battlefield after they ran out of ammunition.

Mr Jonathan's opponents have said the offensive is a political ploy, asking why Nigeria's military, of which he is the commander in chief, is suddenly capable of doing what it has failed to do for nearly six years.

Analysts attribute the success to newly acquired equipment including tanks, armoured cars and helicopter gunships, training by foreign instructors and a joint offensive with battle-hardened soldiers from neighbouring Chad, as well as troops from Niger and Cameroon.

A regional offensive against Boko Haram was mounted at the end of January amid growing international concern as the militants seized territory the size of Belgium, pledged to become the west Africa franchise of the Islamic State group operating in Syria and Iraq, and as the Nigerian insurgents spread their attacks across borders.

At least 10,000 people were killed in the Islamic uprising last year and more than 1.5 million people have been driven from the homes.