Accused of being behind a series of deadly attacks, the chief of IS in Afghanistan has been killed by US and local forces.