Iran says blogger who died in custody was beaten