A 27-year-old man charged in a fatal Sunday morning stabbing in Northeast Washington was angry with the victim for talking to and hugging his girlfriend, according to court documents.

Police charged Leon Allen Smith, of Northeast, with second-degree murder while armed. Court records show that he was arraigned Monday and ordered detained until a preliminary hearing scheduled for Sept. 14.

Police identified the victim as Stephen Manuel Pool, 45, of Upper Marlboro. The stabbing occurred shortly after midnight Sunday in the 200 block of N St. SW, two blocks from the Waterfront Metro station.

A charging document filed in D.C. Superior Court says Smith told police he punched Pool in the chest outside an apartment complex but didn’t mean to stab him with a knife he had clenched in his hand.

Witnesses told homicide detectives that Pool and two others drove from Capitol Heights to Northeast Washington to meet with Smith. After they arrived, the court documents say, Pool hugged the two people in the Sport Utility Vehicle before Smith emerged angry.

“Oh, you trying to talk to my girlfriend, huh,’” court documents quote Smith as saying. A witness, identified as Smith’s girlfriend, told police she “observed the defendant punch the decedent with a closed fist once and walk away,” the court document states.

After the punch, the witness told police she saw Smith holding a silver knife with a blue handle and heard Pool scream, “Oh my God. He stabbed me,” the charging documents state.

A witness held Smith until police arrived. Authorities said they recovered the knife and arrested Smith.

Smith told police he saw his girlfriend “kissing and hugging the decedent” and that he “punched him in the chest,” according to the court documents.

This item has been updated.