Officers opened fire when a man allegedly armed with a knife charged towards them, according to a police chief who has backed their actions.