More details on the ax attack by a 17-year-old asylum-seeker emerged, as Germany said such events were "extremely difficult" to prevent.