When Islamic State gunmen stormed the northeast Nigerian town of Magumeri on the night of August 21, they had free rein.