A man has been charged with five counts of attempted murder after allegedly shooting at a group of teenagers in a west-end apartment last week, Toronto police say.

An 18-year-old male, a 17-year-old girl, a 16-year-old girl and two 16-year-old boys were shot in the hallway of an apartment on Clearview Heights Rd., near Black Creek Dr. and Trethewey Dr., at about 7:30 p.m. Wednesday.

Four of the victims were transported to hospital, while one of the 16-year-old boys went to hospital on his own. They all survived their injuries.

Three men clad in black clothing with hoodies were seen approaching the building in a black sedan before entering and leaving the floor where the teens were shot, police said.

Andrew Cunningham, 20, of Toronto, was arrested Sunday, police said in a news release Monday. In addition to attempted murder, he has also been charged with five counts of recklessly discharging a firearm and several other weapons charges.

The brazen shootings, one of three in the area over a 48-hour period, left community members calling for help with increasing gun violence in the city.

Police said about 20 shell casings were found at the scene. Blood stains were left along the hallway and numerous bullet holes pierced windows and inside walls.

On Thursday, Toronto police Chief Mark Saunders announced an extension to Project Community Space, a $4.5 million anti-gun violence initiative launched in the summer to address street-gang activity. The project, which was supposed to end last week, will be prolonged until further notice.

With files from Gilbert Ngabo

Miriam Lafontaine is a breaking news reporter, working out of the Star’s radio room in Toronto. Follow her on Twitter: @mirilafontaine