Homeless veteran credited for saving life of shooting victim