It has not happened yet, and hopefully it never will happen. The bomb itself would probably be difficult to procure and transport to New York City without being detected by an intelligence agency. What we can say is this: body scanners, luggage X-rays, and shoe removal have done nothing to prevent such an attack, because no such measures are in place.
As an example of the difference, consider the Oklahoma city truck bomb had explosive force equivalent to 5 kilotons of TNT, involved 13 barrels of explosive, and other materials, requiring a small box truck to transport. It did horrendous damage, but in terms of pure destructive force it wrecked about 1/3 of a 9-story building. The two plane impacts on the WTC, by contrast, caused the total collapse of two 80-story skyscrapers. There was lots of ancillary damage in both cases, but I stand by my arguments that it's harder to predict where an attack from the air will occur and that the destructive potential is typically larger in the case of a successful attack, because of the extra mass, speed, and height inputs.
An explosion in the air, or abuse of the plane as a missile as happened on 9-11, is a much bigger problem because the potential destructive radius is much larger and the area of incidence much less predictable. The costs of that happening in a city center in 2001 were staggering; likewise, consider the economic impact of an airliner plunging into or blowing up over a nuclear power station, which might result in less actual destruction but far more severe public panic and economic disruption.