Boko Haram jihadists launched an attack on a girls boarding school in northeast Nigeria but the students and teachers fled to safety, witnesses said Monday.