A male with a long gun who was targeting the Royal Canadian Mounted Police in Vanderhoof, British Columbia, on Thursday has been taken into custody, authorities said.