At least nine people were dead and at least 16 injured after shootings in Krakow and another town, the police said. The motive remains unclear.