Canadian police have identified the person who killed eight people as 18-year-old Jesse Van Rootselaar, but they did not give a motive for one of the worst mass shootings in Canada's history.
Van Rootselaar died by suicide after Tuesday's shooting in Tumbler Ridge, a remote community in the Pacific province of British Columbia.
Police revised the death toll down to nine from the initially reported ten, including the shooter.
"Police had attended that (family) residence on multiple occasions over the past several years, dealing with concerns of mental health with respect to our suspect," said Deputy Commissioner Dwayne McDonald, commander of the Royal Canadian Mounted Police in British Columbia.
Mr McDonald said Van Rootselaar, who was born male but began to identify as a female six years ago, had first killed her mother, 39, and 11-year-old step-brother at the family home.
Video captures students running from Canada school after mass shooting
She then went to the school, where she shot a 39-year-old woman teacher as well as three 12-year-old girls and two boys between the ages of 13 and 17.
"We do believe the suspect acted alone ... it would be too early to speculate on motive," Mr McDonald told a press conference.
Earlier in the day a visibly upset Prime Minister Mark Carney promised Canadians would get through what he called a "terrible" shooting.
'Very difficult day for nation,' says Carney
Mr Carney, who has postponed a trip to Europe, said he had ordered flags on all government buildings be flown at half-mast for the next seven days
"We will get through this. We will learn from this," he told reporters, at one point looking close to tears.
"But right now, it's a time to come together, as Canadians always do in these situations, these terrible situations, to support each other, to mourn together and to grow together."
Several prominent world leaders sent messages of condolence. Britain's King Charles, Canada's head of state, said he was "profoundly shocked and saddened" by the deaths.
Shooting among deadliest in Canadian history
The shooting ranks among the deadliest in Canadian history. Canada has stricter gun laws than the United States, but Canadians can own firearms with a licence.
British Colombia Premier David Eby said the shootings were an 'unimaginable tragedy'
In April 2020, a 51-year-old man disguised in a police uniform and driving a fake police car shot and killed 22 people in a 13-hour attack in the Atlantic province of Nova Scotia, before police killed him at a petrol station.
In Canada's worst school shooting, in December 1989, a gunman killed 14 female students and wounded 13 at the Ecole Polytechnique in Montreal, Quebec, before dying by suicide.
"There's not a word in the English language that's strong enough to describe the level of devastation that this community has experienced," said Larry Neufeld, a local provincial legislator.
"It's going to take a significant amount of effort and a significant amount of courage to repair that terror," he told CBC News.
We need your consent to load this rte-player contentWe use rte-player to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences
Read More: Tumbler Ridge shooting 'beyond comprehension', says local pastor