Daunte Wright, the 20-year-old Black man shot by a police officer in a Minneapolis suburb Sunday afternoon, had an open warrant for his arrest related to an aggravated armed robbery attempt when he was killed, according to court records.

Wright and another man, identified as Emajay Maurice Driver, a high school acquaintance, had both been charged with first-degree aggravated robbery in a December 2019 incident in Osseso, Minnesota, Hennepin County District Court documents obtained by Fox News show.

Daunte Wright and his son.  (Facebook)

According to the documents, Wright and Driver went to a party at an apartment in the 600 block of North Oaks Drive in Osseo – about 5 miles from Brooklyn Center, where Wright was fatally shot.

Around 2:30 a.m., two women at the home told Wright and Driver they needed to leave, but the two men said they did not have a ride, the documents say. The women reportedly allowed Wright and Driver to spend the night.

In the morning, one of the two women left the apartment to get $820 in cash to pay the other for rent. After paying the rent, she left for work.

As Wright and Driver were waiting for their rides, the other woman who stayed behind said Wright allegedly blocked the door, preventing her from leaving. Wright then allegedly pulled a black handgun "with silver trim out from either his right waistband or his right coat pocket," pointed it at the woman and demanded the $820, the court documents say.

DAUNTE WRIGHT, GEORGE FLOYD FAMILIES UNITED IN DEMANDING CHANGE, JUSTICE FOLLOWING BROOKLYN CENTER SHOOTING

The victim asked him, "Are you serious?" to which he allegedly responded, "Give me the f---ing money, I know you have it," according to the court documents.

When she asked again if he was serious, he allegedly told her, "I’m not playing around."  

Wright then allegedly choked the woman while trying to pull the cash out from under her bra, where she had tucked it away.

The court documents say she was able to pry herself loose and "started to kneel down and scream." She told authorities that she allegedly heard Driver tell her to give the money to Wright, who was yelling at her to stop screaming.

She reportedly screamed at them to get out of her apartment, telling them that the cops were close. Wright allegedly told her he would shoot her and said, "Give me the money and we will leave, give me the money and we will go."

A crowd gathers at the Brooklyn Center Police Department in Brooklyn Center, Minn., Monday, April 12, 2021, for a No Justice No Peace rally following the police shooting death of Daunte Wright. (Carlos Gonzalez/Star Tribune via AP)

He allegedly tried to choke her a second time and tried to take her money, according to the court documents. Driver allegedly told her to give Wright the money. The two men then left the apartment, got into a white Cadillac, and left the scene without the money. The woman later identified Wright and Driver via photo line-ups.

Wright was arrested and later released on $100,000 bail. As a condition of his release, he was not to have contact with the victim or witnesses, had to refrain from drugs and alcohol, and could not possess a firearm.

Wright’s bail was revoked in July because he allegedly possessed a firearm and was not keeping in touch with his probation officer, according to documents obtained by Fox News.

CHICAGO POLICE CANCEL OFFICER DAYS OFF AMID 'EVENTS ACROSS THE COUNTRY'

The case was still pending when Wright was pulled over Sunday for having an expired license plate. Police then tried to arrest him on an outstanding warrant after failing to appear in court on charges that he fled from officers and possessed a gun without a permit during an encounter with Minneapolis police in June. 

Body camera footage released by the Brooklyn Center police department on Monday shows the moments after Wright had gotten out of his car. As an officer attempts to handcuff him, Wright pries himself loose and jumps back into his car.

Officer Kim Potter.  (Star Tribune via Getty Images)

A police officer can be heard shouting, "I'll Tase you! I'll Tase you! Taser! Taser! Taser!" She draws her and fires a single shot from her handgun as the car speeds away. The officer can be heard shouting, "Holy (expletive)! I shot him."

Wright died of a gunshot wound to the chest, according to the medical examiner. Kim Potter, the officer charged with his killing, resigned Tuesday, as did the city's police chief.

CLICK HERE TO GET THE FOX NEWS APP

Wright’s death came as the Minneapolis area was already on edge over the trial of an officer charged in George Floyd's death.

The Associated Press contributed to this report.