Islamic State kills dozens of its own in hunt for spies