According to the sheriff's office, the man had been messaging the teen for about a year before the investigation began.
Administrators and the school resource officer reportedly got a tip that the sophomore had a stolen gun at school, according to police.