If it's Deer season and you have a license and it's legal to shoot there...yeah, it's OK.
If not, you're supposed to contact LE in the area even if it's dead.
If not, they generally contact Animal Control who does the deed.
If you can shoot it or otherwise end it's misery without getting caught, you have a moral obligation to do so.
I've only had to do that once.