The Food and Drug Administration said it was taking the action because studies found that the dye, also known as erythrosine, caused cancer in lab rats.