Officials say a man who allegedly stabbed a female student to death and injured another in a British Columbia school didn't know his victims.

Kevin Godden, superintendent of schools in Abbotsford, British Columbia, said Wednesday that investigators believe the attack was a "random act of violence."

Police say a barefoot man walked into Abbotsford Senior Secondary early Tuesday afternoon and stabbed two girls before being held by staff.

Canadian Prime Minister Justin Trudeau has tweeted his condolences, saying it is heartbreaking to hear of the tragedy.

Police say they have a young man in custody. The suspect's name has not been released and there is no word on any charges. The girls' names have also not been released.