The suspect was also killed in the gunfire, a police official said.