Iran, Afghanistan scramble to normalize ties after spat