Local estimates for a semilinear elliptic equation with Sobolev critical exponent and application to a uniqueness result