Armed attackers killed more than 30 people and kidnapped others during a violent market raid in Nigeria's Niger state, police said.