Trump previously said that the war would end after the November elections in the U.S.