Three men have been charged in connection with an early morning shooting in Northwest Washington.

It started about 2:45 a.m. Saturday when two groups of men were arguing at 11th and U streets NW, the heart of the bustling U Street corridor’s nightlife. Gunfire erupted, and two women were shot, each in a leg, police said.

Two D.C. police officers nearby heard the gunshots and saw three men running from the direction of the gunfire toward a Mercedes-Benz, according to court papers. When the men saw police, they slowed down and began to walk casually, according to the documents.

The men got in the car and started to drive away as one of the officers tried to stop them, court documents show. The car pulled over, then the driver hit the gas, police said, but the car was ultimately stuck in traffic a block away.

Inside the car, police found a live round of 380-caliber ammunition, documents show. A witness told police that he saw a gun being thrown out of the Mercedes. Police recovered the weapon, a 380-caliber semiautomatic handgun.

A shell casing found at the scene of the shooting was of the same caliber, according to police.

Arrested and charged with carrying a firearm in a car were Kyree Lathern, 23, of the District; Delonte Anthony Butler, 22, listed in court records as a Maryland resident; and Malcolm Xavier Fonville, 21, of the District. All three were released ahead of an Aug. 21 hearing, according to online D.C. Superior Court records.

Police are still investigating the case.