At least 30 people have been killed and several others abducted after gunmen attacked a village in Nigeria, police said.