A gunman opened fire on a Toronto street filled with restaurants late on Sunday, killing two people and injuring 12 others, including a young girl, authorities said.