Israeli police shot and killed a man who tried to carry out a stabbing attack in the old city of Jerusalem on Saturday, a spokesman said.