A Toronto man wanted in connection with the shooting death of Samatar Farah in 2017 has been arrested — after he was shot and hospitalized.

On Monday, the 24-year-old man was shot in a residential neighbourhood near Gloucester Grove and Alameda Avenue just before 4 p.m. Police say a black vehicle was seen fleeing the area shortly afterward.

The man then appeared in a Scarborough court Tuesday morning and was charged with three counts of attempted murder in the death of Farah in April 2017.

Police arrested two men in June 2017 following and investigation and were searching for two others. Canada-wide warrants were issued at the time. Following Tuesday's arrest, only the fourth suspect remains at large.

"Any assistance being provided to him is an offence under the criminal code and police will seek the prosecution of anyone providing assistance to him to evade arrest," Toronto police spokesperson Gary Long said Tuesday.

Farah's body was discovered in a parking lot near Chester Le Boulevard and Morecambe Gate in Scarborough.