Krakow police said a man who had driven onto the square began firing at random people from his car.