Military officials were starting Friday to piece together what may have pushed an Army psychiatrist trained to help soldiers in distress to turn on his comrades in a shooting rampage that killed 13 people and wounded 30 in Texas.