Prosecutors said the victim had been badly beaten and that his injuries showed there was a " sexual element " to the attack .