GRESHAM, Ore. (AP) — A 65-year-old white man who threatened to shoot a 14-year-old African American boy who rode his bicycle in front of the man’s Gresham home has been sentenced to three years of probation and anger management or diversity-sensitivity training.

Michael James Black went to trial earlier this month before Multnomah County Circuit Judge Steffan Alexander, who found him found guilty of menacing and second-degree intimidation, which is a hate crime, The Oregonian/OregonLive reported.

Black had been sitting in a lawn chair when the teen rode by, according to the Multnomah County District Attorney’s Office. Black told the boy he was on private property and yelled a racist slur at him, prosecutors said.

Black then yelled: “I’ll blow your head off,” according to the District Attorney’s Office. Black then went inside, prompting the boy to rush home out of fear the man was going to come out with a gun.

The 14-year-old was heading home from school last May 10 with two friends and riding ahead of them, then circling his bike around as he waited for them to catch up, according to a probable cause affidavit.

As part of his sentence, Black must write an apology letter to the teen, complete 150 hours of community service and refrain from possessing weapons.

According to the District Attorney’s Office, Black apologized in court Thursday to the teenager’s mother, who talked about how the crime had affected her son, family and community.