Inducible Defenses and the Allocation of Resources: A Minimal Model