A court in Kazakhstan has banned as "extremist" the anti-Islamic film that sparked deadly protests across the world.