BOW, Skagit County — A man was arrested after police say he attacked a 17-year-old boy and posted the attack on social media.

Trevor McCabe, 18, was charged this week in Skagit County Superior Court with assault resulting in great bodily harm, assault with a deadly weapon, robbery and tampering with a witness, the Skagit Valley Herald reported.

According to court documents, the boy had messaged McCabe on social media and asked for alcohol. McCabe told the boy to come to his house in Bow and bring $30, documents said.

When the boy arrived, documents say McCabe struck him, causing the boy to fall and begin to seize. McCabe continued to assault him while recording the assault and posting it to social media, according to documents.

McCabe also wrote a slur on his forehead with a permanent marker, and pointed a loaded shotgun at him, according to the documents.

The boy was taken first to a local hospital and then to Harborview Medical Center in Seattle where he remains in serious condition, Skagit County Undersheriff Chad Clark said.

McCabe told police in an interview he was defending his property against trespassers, according to court documents.

McCabe is being held in the Skagit County Community Justice Center on $500,000 bail.