In first such statement in years, terrorist group’s military wing takes responsibility for attack, running against defense establishment’s estimates assailants acted alone