Australian police said they have shot dead a boy after he stabbed a man in Western Australias capital Perth, in an attack authorities said indicated terrorism.