He did say, by the rules of logic, that those ""stuck" in Iraq are there because they did not "make the most of it and ... study hard and ... do ... homework, and ... make an effort to be smart." If he didn't say our troops are stupid then he said that they are lazy, at least in the area of learning.
In any case it was an insult from an arrogant pretender.