A gunman killed one person and injured four others in Washington DC's Logan Circle neighbourhood, a short distance from the White House, on Thursday morning, November 12, before dying by suicide after an hour-long standoff with police.

The shooting began at around 8am local time at the Vida Fitness gym. According to city council member Brooke Pinto, the gunman went into the gym to target the building owner, and killed him there.

"The suspect was in litigation recently with his building owner. And we believe the suspect went into Vida Fitness to target the building owner and shoot him and kill him, which he did," Pinto said.

After the shooting inside the gym, the gunman shot bystanders outside, including construction workers and a woman, according to police and city officials.

Standoff and fire in a nearby building

The gunman then barricaded himself inside a seventh-floor apartment in a nearby building. Parts of the building were set on fire during the standoff.

Police surrounded the building and communicated with the gunman for about an hour. Officers then heard a gunshot from inside the apartment, forced entry and found him with a self-inflicted gunshot wound.

One of the injured people is in critical condition, while three others have non-life-threatening injuries, according to law enforcement.

Who the gunman was

Later reports identified the gunman as Dr Matt Lambert, a physician said to have been in a long-running dispute with the building's homeowners association. That identification comes from later reports and not from the first accounts of the shooting, which did not name him.

The motive described in the first accounts points to the dispute with the building owner. Pinto said the suspect had been in litigation with the building owner recently, and that police believe he went to the gym specifically to target him.

The shooting happened in a busy residential and commercial area of the city, close to the White House, and police cordoned off streets around Logan Circle while the incident was under way.

Investigators are expected to continue examining the circumstances of the attack, including the dispute behind it and how the gunman moved from the gym to the apartment building where the standoff ended.