The lawsuit alleges that the mayor fired him and ignored warnings that the chain of evidence would be compromised.