The Islamic State appears to have manufactured rudimentary chemical warfare shells and attacked Kurdish positions in Iraq and Syria with them as many as three times in recent weeks, according to field investigators, Kurdish officials and a Western ordnance disposal technician who examined the incidents and recovered one of the shells.