Products designed to keep schools and workplaces safe include gun detectors guided by artificial intelligence, bulletproof tables and automatically locking doors.