Former high school security guard sentenced