Officer filed suit against city before being killed on duty