At least 36 people have been injured in clashes between inmates and guards of a high-security Kabul prison.