A carbon dioxide fire extinguisher is the best choice if an electric clothes dryer is on fire. Why would a water extinguisher not be stable for the clothes dryer fire?
An electrical fire would only be made worse by adding water. Using a CO2 extinguisher is smarter because it cools what ever has been set on fire making it less likely to light on fire again.