A fast-moving wildfire has swept through western Canada, forcing thousands of people to evacuate their homes.