At least 45 people were killed in a suspected Boko Haram attack in northeast Nigeria, officials and witnesses said on Thursday, in the latest violence to hit the restive region.