A solitary-wave solution to a perturbed KdV equation