its cheating, but I found that its sometimes best to apply the “debug invincibility” cheat to the merchant. If possible, its also worth replacing the wooden reinforced doors outside with metal doors and ensuring all the windows are closed.
I don’t think its possible to resurrect a specific NPC, though, since the ones the games spawned are different than what you can spawn.