The veteran deputy was just one shift away from retirement after more than 30 years on the force when he was killed.