Man shot bt sheriff's deputy cleared of wrongdoing