Sentence:  He had <WSD>stupidly</WSD> thought himself compelled to ease his brother 's pain . 
Meaning of the word marked with <WSD> tags:  in a stupid manner