Psychiatrist testifies about shooter's possible motivations