Model for the chemotactic response of a bacterial population