A man who triggered a five-day manhunt in the town of Slocan, B.C. after he allegedly opened fire on police was shot by police, the BC Coroners Service has confirmed.

In a release issued Tuesday, coroner Barb McLintock said 45-year-old Peter DeGroot was shot after an encounter with two Emergency Response Team members at around 1:45 p.m. Monday afternoon.

She confirmed DeGroot died at the scene. It is unclear how many times he was shot.

Police say the ERT members were searching a cabin in the vicinity of Slocan at roughly 1:20 p.m. when they encountered DeGroot.

The Independent Investigations Office, which probes officer-involved shootings, confirmed a gun was found at the scene. No police officers or members of the public were injured.

The IIO has deployed a team director, three investigators and a forensic specialist to Slocan as it continues to probe the incident.

Police had been searching for DeGroot for the last several days after he allegedly fired at police with a long rifle on Oct. 9.