A NSW Police officer has been taken to hospital in a stable condition after suffering an injury in a police operation during the arrest of a man wielding a samurai sword.