I would like to know what is the earliest work using what I call the shunned guardian motif.
What I mean by shunned guardian is a character (or organization) which guards the society from some external threat (usually monsters), but is himself shunned by that society.
Two modern examples I know of are claymores from the manga series Claymore and witchers (come to think of, both slay the monsters for money, ruinous amounts of it in Claymore).
Editing in a clarification from comments: the society is aware of the danger. It may have low probability or not be imminent, but they are aware of it.