An altercation between two groups led up to the gunfire at an unsanctioned gathering of drivers of modified sports cars on Friday night, officials said.