Density estimation in Besov spaces