SAN DIEGO (AP) — A teenager was sentenced to six months in jail Friday for sending threatening Internet messages to San Diego-area students just days after a fatal school shooting there.

Patrick Andrew Smith, 18, pleaded guilty last month to sending violent threats to two teenage girls from Santee, Calif., including one that said he would "try to finish what Andy didn't complete."

The message referred to Charles Andrew "Andy" Williams, the 15-year-old charged with killing two people and wounding 13 at Santana High School in Santee on March 5, prosecutors said.

Smith has said he only sent the messages as a joke.

"The fact is there were people who were very directly harmed by your words," Superior Court Judge Judith Hayes told Smith before imposing the sentence.