A news release from the sheriff's office said the student confessed to making the post after his Miranda rights were read.