Violent clashes and riots have broken out on the Mediterranean island after a pro-independence prisoner was attacked.