No good deed is said to go unpunished but many attempts to do good deeds are thwarted by the treat of punishment or actual punishment. Antigonus learned that, no doubt cursing as the bear chased him away from the baby. In world affairs an attempts to do a good deed, remove dictators and replace them with democratically elected politicians, we have seen that the attempt to do a good deeds have been chased away by larger less predictable and more serious threats. as the democratically elected leaders who replaced dictators are being chased away by ISIS.
Perhaps because the good deeds were not wholly motivated by a desire to help, but had large motivations, almost certainly the dominant motivations, of self interest by the states and politicians who set in train the so called good deeds of disposing of dictators. Now exit, pursued by greater terrorists than those they chased away.