Model of chemotaxis with threshold density and singular diffusion