It was not immediately clear when she posted the declaration referring to Abu Bakr al-Baghdadi, the emir of the self-proclaimed Islamic State, but two law enforcement officials said it was the clearest indication yet that the shooting that killed 14 people was an act of terrorism.