A 20-year-old man wanted in connection with a shooting inside a busy Toronto shopping centre last week has been arrested, Toronto police confirm.

Gunfire erupted near a Starbucks in the southeast side of Yorkdale Mall, located near Allen Road and Highway 401, shortly before 3 p.m. last Thursday.

Police say two groups of males were involved in an altercation and two shots were later fired.

Panicked members of the public ran and ducked for cover when the shots rang out and the incident prompted police to put the mall on lockdown for the rest of the day.

Some shoppers were trapped inside stores while they waited for the all-clear from officers.

Video surveillance footage from the mall was subsequently released to the public and the suspect was identified as Zion Sankar-Beharry, of Toronto

Police confirmed Tuesday that Sankar-Beharry is now in custody.

The accused, investigators say, was located outside of Trenton on Monday and he was arrested without incident.

He faces close to a dozen charges, including two counts of attempted murder, two counts of pointing a firearm, possessing a loaded regulated firearm, and carrying a concealed weapon.

Sankar-Beharry made a brief court appearance on Tuesday but his case was adjourned until Sept. 7 at 10 a.m.