There was no security protection at an agricultural college in northern Nigeria where 50 students were shot dead as they slept on Sunday.
Yobe state government special adviser Abdullahi Bego said college officials will work with the military to increase protection and will not close other schools. He said that is what the terrorists want.
Casualty figures from the attack vary, but a state politician told the BBC that around 50 students had been killed.
The military said soldiers collected 42 bodies and took 18 wounded students to a hospital in the state capital, Damaturu.
A survivor has told the BBC Hausa service he and at least 200 other students got away from the college when they heard gunfire.
''The windows were open so we escaped through them and ran into the bush,'' he said.
North-eastern Nigeria is under a state of emergency amid an insurgency by the Boko Haram group.
Boko Haram is fighting to overthrow Nigeria's government to create an Islamic state and has attacked a number of schools.