3 dead, thousands of homes threatened in fire