An AI-powered gun detector incorrectly identified something a student stuffed into his pockets as a gun, prompting an armed response from police.