You can clean a carpet with a broom, provided you use one with stiff bristles. The bristles get between the fibers and lift the debris clear. This Yocada Push Broom is an excellent example of an indoor/outdoor brush with a telescoping handle.
You can then sweep up the dirt with a dustpan and brush.