The answer lies in where the wildfire began. If a wildfire started on non-federal land, it would be the responsibility of state agencies.
The federal government’s responsibility is first to respond to those that begin on federal land. However, state and federal agencies usually work together when managing fires.