That's one of the problems Africom is trying to fix. They're trying to help host nations develop a professional military which doesn't committee genocide, rape or plan coups. The problem with that is sometimes (ok almost always) those "professional" military forces are turned against their own people. So once again it's a no-win for the US.
You don't create a professional military in a vacuum!