So the question here is: is about $$ 10^{15} $$ Joules enough energy to deflect a comet? Maybe, but deflecting the comet also means having to focus this energy on a known location.
Well, here's a problem, even if the future "knows" when the comet enters the earth's atmosphere and when it strikes the ocean it lands in (because both are known accurately), how could it know where the comet was when the deflection beam is fired? This comet doesn't get detected until it's too late, so there must be some really cool quantum processing goin' on somewhere.
Unless of course, it is possible to retrodict the comet's position from a sufficiently large set of measurements taken from the moment of first detection.