He cut himself while smashing display cases with a hammer. Blood helped police identify him.