VANCOUVER, British Columbia — The suspect in a Canada school shooting was an 18-year-old who had a history of police visits to her home to check on her mental health, authorities said Wednesday, a day after the attack that killed eight people in a remote part of British Columbia.

Police said Jesse Van Rootselaar was found dead from an apparent self-inflicted wound following the assault on a school in the community of Tumbler Ridge.

Royal Canadian Mounted Police Deputy Commissioner Dwayne McDonald said Van Rootselaar first killed her mother and stepbrother at the family home before attacking the nearby school. She had a history of mental health contacts with police, he said.

The motive was unclear.

Police initially said nine people were killed Tuesday, but McDonald clarified Wednesday that there were eight fatalities. McDonald said the discrepancy arose from a victim who was airlifted to a medical center. Authorities mistakenly thought that person had died.

More than 25 people were wounded.

The town of 2,700 people in the Canadian Rockies is more than 600 miles northeast of Vancouver, near the provincial border with Alberta. Police said the victims included a 39-year-old teacher and five students, ages 12 to 13.

The killings at the home occurred first, McDonald said. A young family member at the home went to a neighbor, who called police. The bodies of the suspect’s mother, who was also 39, and her 11-year-old stepbrother were found at the home.