Military kills 24 as Boko Haram attacks bases, airport