A school shooting in Canada has left nine dead and dozens injured.