Multiple people were killed and dozens more were injured when an explosion erupted at a Canadian military base, authorities said.