As unprecedented wildfires raged through Los Angeles, some firefighters suddenly lost access to water. City officials called one shortage a “worst-case scenario”—one they expect to see again in the future.