A dusk-to-dawn curfew has been imposed after dozens of college students were killed by attackers in Nigeria's northeastern town of Mubi in Adamawa state, police say.
The attack occurred between 10pm on Monday and 3am on Tuesday when assailants invaded student accommodations outside the campus of the Federal Polytechnic Mubi college, said one of its students, Danjuma Aiso.
A senior police official told Al Jazeera that unknown gunmen went into the campus hostels and killed at least 25 people.
Local officials confirmed that the attack had taken place. Yushau Shuaib, a National Emergency Management Agency spokesperson, said that "a number of people" had died.
He said it was not clear whether the attack was the work of Boko Haram, a group blamed for previous deadly assaults, or the result of a dispute between rival political groups at the university.
Officials also pointed out that the attack could be related to a students' election that was recently held at the school. Shuaib said initial reports indicated one of the victims was a candidate in the poll.
"The killers went from room to room, slaughtering them one by one," said witness Mohammed Awal, who was not harmed in the attack.
Some were shot, others killed with machetes, he said.
Police were investigating whether the killings might have been motivated by a political feud inside the college, the Reuters news agency reported.
Al Jazeera's Yvonne Ndege, reporting from Abuja, said: "There is one theory that is emerging as to what could have been behind the attack. The emergency services say that some time ago there was some kind of disputed election on campus."
"It is believed that this could be a premeditated attack by those involved in the college. The reason they said this is because some of the survivors say that individual names were actually called out by the gunmen before students were attacked."
Adamawa state police spokesman Ibrahim Muhammad said 25 men were killed: 19 students of Federal Polytechnic Mubi, three students of another college, an ex-soldier, a security guard and an elderly man.
He said the student halls had been raided by police last week as part of a crackdown against Boko Haram.
'Not Boko Haram'
During the raid, police recovered weapons including a rocket propelled grenade, dozens of homemade bombs, knives and automatic assault rifles.
"Boko Haram (attackers) open fire sporadically," said Muhammad.
"In this case, the attackers called their victims by name and left other people in the room alone. This is not the modus operandi of Boko Haram."
"It is the work of insiders," Muhammad said.
Al Jazeera's Yvonne Ngege, reporting from the capital Abuja, said that emergency services believed this attack was related to a disputed election at the campus.
"What we do know, speaking to the police and emergency services, is that these students were attacked in the dead of night. Many of them were fast asleep when these gunmen stormed their dormitory.
"The emergency services are saying that sometime ago there was some kind of a disputed election at campus ... and it's believed that this could have been some kind of a premeditated attack by those involved with the polytechnic."
"'The reason they say this is because names, individual names, were actually called out by the gunmen before the students were attacked."
The college attack follows the killing Saturday of three students outside a university campus, about 170km away, in the city of Maiduguri.
Ahmed Mohammed, a spokesman for the University of Maiduguri, said on Monday that the university was aware of the attack but that he could not comment since it occurred off school premises.
Adamawa state, where Mubi is situated, has a mixed Muslim and Christian population and borders Borno state, where Boko Haram came to prominence in 2009, staging an uprising in the state capital, Maiduguri.
Source: Al Jazeera and agencies