A prosecutor killed himself as police tried to serve him with an arrest warrant alleging he solicited sex with a minor, authorities in Terrell, Texas, said.

Louis “Bill” Conradt Jr., 56, a chief felony assistant district attorney in Texas, died Sunday. Police had moved to arrest Conradt following a sting operation aimed at exposing child sex predators set up by a television news program.