A jury has acquitted a man charged with shooting towards police officers in an incident during the unrest that followed the death of George Floyd.