That's why there is varying degrees of punishment. Attempted murder is still a crime, but due to the circumstances, he should still be arrested and tried, but maybe receive a light sentence.
(I can't say more or it's another 48 like I got for not showing proper respect, understanding, and sympathy for the plight of sadly misunderstood cannibalistic serial killer Jeffrey Dahmer)