Officials confirmed that 23 people were decapitated and burned in an attack in Barutai on Saturday.
Mohammed Adamu, a council official in the village said that militants used chainsaws to decapitate the people.
“All of us ran into the bush…. Those who were unfortunate were caught in their houses and slaughtered,” he said.
Boko Haram militants attacked other areas in Nigeria's Gombe and Yobe State on the election day, killing scores of people there.
Gunmen launched an attack on a polling station in the town of Dukku in the northeastern state of Gombe, killing five people. An earlier assault took place in the villages of Birin Bolawa and Birin Fulani in the same state, killing two people. Another attack in Ngalda, in Yobe State, killed 3 other people.
People in the oil-rich West African country turned out en masse to vote in a presidential election on Saturday in a close race between incumbent President Goodluck Jonathan and former military chief Muhammadu Buhari. Parliamentary elections are also being held in the country simultaneously.