He had guts and knew what to do in a split second, that's the difference.
If both my hands were busy trying to pull myself up over a roof edge (where I could not draw a side arm) and someone pointed a rifle at me, it would not be cowardice to duck back below the ledge. It would be survival instinct.
There are a few times when survival instinct can be over come, and usually only with stress training to inoculate oneself from the natural survival instincts. Rushing into fire to save the life of a loved one falls into that category. Given the roof shooter had not fired yet, and the cop didnt know what to expect, and it wasnt yet clear that lives were in danger, I am going to give the cop some leniency here, for the moment anyway. These cops were not trained SEALS, and may not have even been SWAT. Street cops dont get nearly as much training as you might think.
Circumstances obviously changed very quickly after the initial encounter by the cop.