The school was briefly placed in lockdown after an automated detection system misidentified a student’s clarinet as a weapon.