Mentally ill man killed by Detroit police had earlier encounter with officers