Student, 9, brings loaded gun in backpack to elementary school