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