A weapon detection device had flagged the rifle’s upper half as the teen walked into Battery Creek High School, officials previously said.