Student arrested for hiding gun in his locker