An Iranian security official says 2,000 people have been killed so far after a crackdown on weeks of anti-government protests.