The man’s lawyer said a judge dismissed charges against his client.