Nonparametric estimator of the tail dependence coefficient: balancing bias and variance