The Nigerian Army says eight soldiers were killed in a Boko Haram attack on a military base over the weekend in the country's restive northeast.