Officials have cited public security for the new rules, which also forbid bringing unmanned aerial vehicles (UAVs) or their core components into Beijing.