You did do the right thing. The rabbit would have died by either

a) just dying like he was laying here
b) the hawk coming back to eat it

So it would have died a slow and painful death either way so ending its misery is a good thing to do :