A man was shot and wounded Saturday afternoon in the Dupont Circle area of Northwest Washington after trying to stop a robbery, according to police.

Police said they made one arrest and recovered two guns after the incident in the 1600 block of 17th Street NW.

“It’s really rare that we have any gun crimes in the Dupont area,” said Jack Jacobson, an advisory neighborhood commissioner for the area. In more than four years in his post, he said, “I don’t recall a time when someone was actually shot’’ in a robbery.

The incident at about 3:15 p.m. stemmed from what police described as an attempt to hold up house painters working near17th and Corcoran streets.

The intended victim and other people apparently began struggling with the robbers, police said in a statement.

One of those who came to the victim’s aid was shot, and he suffered injuries that were not believed to be life-threatening, the statement said.

Police officers arrived as matters apparently spilled onto the street. According to police, the officers, “with the assistance” of citizens, took a suspect into custody and recovered two guns. Police did not provide the suspect’s name.

The wounded man was taken to a hospital with a gunshot wound in his leg, authorities said.

Police said one suspect, believed to be a teenager, remained at large.