Officials told reporters that the main suspect, a 19-year-old Austrian, began working on his attack plans in July, and just a few weeks ago uploaded to the internet an oath of allegiance to the current leader of the Islamic State group militia. He planned to use knives or homemade explosives.