A Knightdale High School student was arrested Wednesday after tweeting a rant against the school and posting a photo of himself pointing a gun.