Another 13 people, ranging in age between 10 and 59, were injured in the attack in the Greektown district of Toronto, police chief Mark Saunders told reporters.
The 29-year-old suspect had an exchange of gunfire with police officers before being found dead nearby.
The reason for the shooting is unknown.
Police have not named the suspect, who was from Toronto, and it is unclear if he was killed by police gunfire or took his own life.
The attack happened on July 22. In a video clip shared by Canadian media, a white man wearing a dark cap and dark clothing and carrying a shoulder bag can be seen stopping on a pavement and pulling out a handgun before firing shots.
PM Justin Trudeau sent his sympathies to the victims and the city in a tweet, while Toronto Mayor John Tory condemned the “despicable” attack on “people innocently enjoying a Sunday evening”.
Emergency services were called out just after 10PM local time. The site of the attack is a piazza with a fountain that is popular with local people and was busy at the time, the Toronto Globe and Mail writes.
A number of people were reportedly hurt in a cafe called the Demetres, while others were hit in the street.
Detective Sgt Terry Browne, who is leading the investigation into the shootings, told reporters on Monday that “some individuals have what may be described as life-changing injuries” following the attack.
According to the Special Investigations Unit (SIU), which looks into incidents involving police which result in death, the gunman was tracked by officers to Bowden Street, a short distance from the cafe.
The gunman fired at a crowd of people waiting to cross the street, he said.
Police chief Saunders told reporters that, as yet, they “don’t know why this has happened”.
It is unclear whether the suspect was shot by police or killed himself with his gun.
A post-mortem examination is planned for July 24, according to SIU spokeswoman Monica Hudon.
Gun violence is much rarer in Canada than over the border in the US, but Toronto has seen attacks increase dramatically in recent years.
Image source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…