Gunmen killed 47 people in attacks on villages in the northwestern Nigerian state of Katsina in the early hours of Saturday, local police said.