The Nigerian army has repelled an attack on a military base in western Nigeria where nearly 1,700 jihadists are being he