THOUSAND OAKS, Calif. — Only hours after a gunman attacked a country music bar in Thousand Oaks, the city was once again struck with panic. This time, fire forced the evacuation of the town still reeling from the devastating shooting.

Residents in Thousand Oaks had just begun to mourn the 12 people killed late Wednesday at the Borderline Bar & Grill when the second crisis this week set the city on edge. For hours after the shooting, people crowded into the Thousand Oaks Teen Center, anxious to find out if their loved ones had survived. It was well past lunchtime before it began to empty out. But by midnight, it was crowded again — this time as a fire evacuation center.

As wildfires spread through Ventura County, thousands of residents were forced to evacuate, including some who had survived the shooting just 24 hours earlier.

For Dylan McNey, a 22-year-old carpenter, the evacuation orders were the least of his worries. Mr. McNey has survived two mass shootings just a year apart: first, at the county music festival in Las Vegas, then once again in Thousand Oaks this week. Mr. McNey used to work as a security guard at the Borderline, and said he is there at least a couple of times a week.