The suspect in a stabbing in Austria killed a 14-year boy and injured five others swore allegiance to the Islamic State who apparently acted alone, authorities said Sunday.