Boko Haram gunmen killed 35 people in attacks on three villages in Nigeria's restive northeast Borno state near the border with Cameroon, a military source and residents said Thursday.