Police in Maryland responded to a hostage situation at a Burger King fastfood restaurant on Sunday. A man holding a gun ran into the restaurant and held four people hostages before he was taken into custody hours later.

🚔 Howard Co. Police @HCPDNews armored truck arrives at Burger King hostage situation to assist. #Baltimorepic.twitter.com/oafU6AlQ2u CBSWJZ — EastCoastAlert (@Eastcoastphotog) July 17, 2016

A seven-year-old girl was among those held captive by the armed suspect, according to Baltimore police.

"No harm has been done to any of [the hostages]," police spokesman T.J. Smith said, adding that a 70-year-old woman was also among those kept captive.

Massive Anne Arundel County Police caravan just arrived at barricade situation at #Baltimore Burger King #WBALpic.twitter.com/65PJUl3JKW — Vanessa Herring (@VanessaWBAL) July 17, 2016

Two people have been first released during the police operation at the scene, according to the police spokesman. The child remained inside the restaurant until negotiations successfully ended, he added.

#BreakingNews: Additional emergency crews arrive for Burger King barricade situation in S. Baltimore. @cbsbaltimorepic.twitter.com/xiivS10mOT — Tracey Leong (@TraceyWJZ) July 17, 2016

LIVE on #Periscope: Update on Burger King Barricade in South Baltimore- https://t.co/UyEUGk26Ad — Baltimore Police (@BaltimorePolice) July 17, 2016

The gunman is a suspect wanted on a rape charge, Smith said, adding that he fled from police before barricading himself in the restaurant at 1735 Washington Blvd.

There are people inside of the location. SWAT and Negotiators on scene. Please avoid area. @BaltimorePolicepic.twitter.com/ttlUOkAtRT — T.J. Smith (@TJSmithMedia) July 17, 2016

BREAKING: Police say armed suspect wanted for rape holding people hostage inside Burger King in #Baltimore#USApic.twitter.com/HDH2ulfTrj — News_Executive (@News_Executive) July 17, 2016

The suspect refused to pull over after he had been spotted by officers, according to the police spokesman. The armed man's vehicle also collided with another vehicle, and the man then fled on foot into Burger King.

Family is upset at the situation and cops. Some tension as an uncle tries to walk toward the Burger King hostage scene. Cops intercept him. — MolotovFlicker (@MolotovFlicker) July 17, 2016

There has reportedly been "some tension" between alleged family members of one of the hostages and the police, an eyewitness tweeted. In another post, she wrote she had been told the armed man was a "big... African American."