Three dacoits killed in police encounter