The presidential candidates were attending the New York event on the 23rd anniversary of the terror attack on the US.