To avoid the resource curse Afghanistan needs to stop illegal mining.