A former adviser to the Democratic presidential campaign of Senator John Kerry of Massachusetts said the president owed an apology to Mr. Kerry , who proposed increasing the size of the military , only to be ridiculed by Republicans . ''