A gruesome attack by Boko Haram Islamists killed 39 people in a village in the northeast, the area governor said after visiting the scene on Wednesday.