That often happens. Usually, just clicking the X to close the "Insert image" dialogue then trying again is all that's required but occasionally two or three attempts are required. Also, you may have better luck by first clicking "Use Advanced editor".