Boko Haram killed no less than 170 villagers in northeastern Nigeria, people leaders say, in what is one of the deadliest assaults in recent times.