Top official resigns, three arrested in Iran’s train crash