Poland launched a "terrorism" investigation into a deadly shooting in Krakow by a 24-year-old Polish national that left six dead and 15 injured.