Mistrial ordered in case of man charged with trying to rape