Fortunately, his attack hits, but glances off the dragon's rib, leaving a long slash, as it leaps away from him, eyes intent on murder... which is why it doesn't see the arrow that catches it in the neck, fired from the window, nearby. That certainly seems to have broken its concentration, for the moment.