This is almost exactly the plot of this short story by Philip K. Dick: 
<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;The_Defenders_(short_story)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;The_Defenders_(short_story)</a>