A man shot inside an apartment building Wednesday evening in downtown Washington was attacked during a robbery, according to a D.C. police report.

The shooting occurred about 6:15 p.m. at the Mass Court building in the 300 block of Massachusetts Avenue NW. It is located about four blocks from Union Station.

A police report says that the victim encountered two men outside an apartment on the 14th floor. One of the men said, “Give me your wallet and keys,” according to the report.

The victim told police he fought with both men and that one took out a handgun and shot him in the left wrist. A bystander told police that the men later sped away in a black Nissan Altima with Virginia license plates.

In the police report, the victim told police he had been attacked at the entrance to his apartment. But police listed the victim’s home address about a dozen blocks away in the Truxton Circle neighborhood.

It could not immediately be learned if the victim had been visiting the apartment on Massachusetts Avenue. Police would not say if the apparent robbery attempt was random or targeted.