Iranian state TV says more than 3,100 people were killed in recent unrest.