Mentally ill suspect got gun legally