CRESTVIEW — A 12-year-old Crestview online student was arrested Thursday for sending a threat to kill or do bodily injury to another student living in Hillsborough County.

The Okaloosa County Sheriff’s Office was notified by the Hillsborough County Sheriff’s Office that a post showing a collection of guns and ammunition was sent to a 13-year-old boy with the caption “Many guns to die from,” according to a press release from the Okaloosa County Sheriff's Office. Another one of the posts said, “So you want to die?”

Investigators traced the posts back to a 12-year-old Crestview boy, who sent them though an online school portal — Florida Cyber Charter Academy.

The defendant, who was arrested at his home Thursday evening, admitted sending the messages, the press release said. The student said, though, he was just trying to “be funny” and was trying to stick up for a girl that was being bullied in his class by the recipient of the threats.

The boy said he got the picture of the firearms by searching the image on Google. He admitted to sending the message to two other students in his online classroom, according to the arrest report.

The student was charged with one felony count of written/sent threats to kill or do bodily injury.