Officials say militants with the Islamic State group attacked a village overnight in northeastern Nigeria, killing at least 29 people.