Mr. Lieberman 's remarks came on the same day that Ned Lamont , who defeated him in the Democratic primary , rallied with Senator John Kerry of Massachusetts , the Democratic Party 's presidential nominee in 2004 .