Cop killed by mentally ill man