China will ban the sale of drones in Beijing and require permits to fly them under new rules that take effect on Friday.