The 23-year veteran of the department is fighting for his life after undergoing surgery Wednesday afternoon, the police chief said