Sheriff: Student brought gun to McKinley High