MONCTON, New Brunswick (AP) — A man suspected in the shooting deaths of three Royal Canadian Mounted Police and the wounding of two others in a rare case of gun violence in eastern Canada was arrested early Friday, police said.

Paul Greene, a spokesman with the RCMP, said Justin Bourque was arrested at around 12:30 a.m. The 24-year-old Bourque had been wanted after the shooting Wednesday evening in the northwest area of the city.

Royal Canadian Mounted Police officers take cover behind their vehicles in Moncton, New Brunswick, on Wednesday, June 4, 2014. Three police officers were shot dead and two others injured Wednesday in the east coast Canadian province of New Brunswick, officials said, and authorities were searching for a suspect. (AP Photo/The Canadian Press, Viktor Pivovarov, Moncton Times & Transcript)

Frightened residents had huddled in their homes for a second night as police scoured the eerily quiet streets in search of Bourque.

A motive for the shootings was not known, and Bourque’s neighbors described a withdrawn man who collected guns and was an avid hunter of birds, deer and moose.

Police investigate a second scene near a Friday night shooting that left two people dead and three Royal Canadian Mounted Police officers wounded in St. Paul, Alta., Saturday May 10, 2014. (AP Photo/The Canadian Press, Jason Franson)

Bourque, who was armed with high-powered long firearms, was spotted three times Thursday but still managed to elude the massive manhunt that all but shut down this city of 69,000 people about 180 miles (290 kilometers) east of the Maine border.

Dozens of police officers with their weapons drawn could be seen in a part of the search area, some glancing around buildings. Others, including members of a tactical unit, were patrolling streets within the cordoned off area. Armored security trucks were also visible.

Bourque was wearing military camouflage and carrying two rifles in a picture released by police on Twitter.