ISWAP militants killed eight security personnel in two attacks on Nigerian military bases, raising fears of retaliation.