Shooter of congresswoman ruled not compenent