Officials say militants with the Islamic State group attacked a village Nigeria's northeast, killing at least 29 people.