A female student stripped to her underwear outside her university in Iran in what some student and rights groups say was a protest.