A man was knocked off his motorcycle after being shot by someone in a passing vehicle, Dallas police say.