​Abbotsford Police have arrested and charged a 21-year-old man with assault with a weapon in connection with 24 pellet gun attacks.

The arrest comes after a cyclist found evidence after checking his helmet camera.

Police say the footage led to the arrest of one of pair of men police allege were ambushing people and shooting them with painful pellets.

"As soon as we went public with the images... these pellet gun attacks stopped," said Abbotsford Const. Ian MacDonald. "If this pair had struck a driver we could have been dealing with a much worse situation."

Police credit the observant cyclist with helping crack the case, by providing video of a hand sticking out the window of a 2006 dark blue Chrysler Sebring.

Police applaud cyclist

MacDonald says the cyclist heard of the pellet attacks, recalled a strange sound last Monday as he was cycling earlier that day, checked his helmet camera, and got a surprise.

"There in front of his eyes was the same suspect vehicle — as well as some important information about the passenger in the vehicle," said MacDonald, adding. "pretty stark images of a gun coming out of the that passenger window .. was vitally important to our investigation."

Within days they arrested a young man, and they continue to look for his alleged accomplice.

"More charges are forthcoming," said MacDonald.

The attacks began July 27. Police say 24 cases were eventually reported to police, with some of the nine people injured reporting broken skin from the hits.

Anyone with information is asked to call the APD at 604-859-5225, text them at 222973 (abbypd) or call Crime Stoppers at 1-800-222-8477