A man apparently fatally shot himself Saturday in the woods outside an elementary school in west suburban Batavia.

Officers responded about 6:20 p.m. to a call of an “armed despondent subject” in the woods southwest of H.C. Storm Elementary School, according to a report from Batavia police.

Officers and the Kane County SWAT team secured the scene and found a “deceased male” in the woods, police said.

The Kane County Coroner’s Office identified him as a 22-year-old man from Batavia. Preliminary results of an autopsy indicated he died of a self-inflicted gunshot wound to the head, but toxicology testing was pending.

The Batavia Police Department was seeking to question two people seen in the area at the time of the incident. The two people, described as a white male and female, were walking a dog near the playground of the school, police said. One of them was wearing a yellow shirt.

Anyone with information about the incident was asked to call Detective Michelle Langston at (630) 454-2500.