A man accused of shooting at police Monday night during an hours-long standoff in Oakdale was charged Wednesday with attempted murder and assault.

Devione Leeante Malone, 25, of St. Paul, faces seven charges in Washington County District Court, including two counts of first-degree attempted murder of a police officer, four counts of first-degree assault of a police officer, and one count of illegally possessing a firearm.

Malone, who has a lengthy rap sheet that includes convictions for first-degree arson and assaulting a correctional officer, was being held in the Washington County jail ahead of his initial court appearance Thursday.

According to the criminal complaint, Oakdale police responded to a 911 call at about 10 p.m. Monday from a man who said a woman he knew and her toddler granddaughter were in a vehicle with Malone and "needed assistance." The woman had a no-contact order against Malone.

Officers spotted the vehicle in the 7000 block of N. 10th Street and attempted to surround it in a parking lot, but Malone drove off down Hadley Avenue, according to the charges. Police followed as the car pulled into the driveway of the woman's house in the 100 block of Greystone Avenue N. in Oakdale.

After Malone exited the car, he fired one shot at a squad car as it turned into the driveway. The bullet hit the car's front fender and ricocheted into the squad's passenger-side mirror. According to Bureau of Criminal Apprehension investigators, Oakdale police officer Andrew Dickman then returned fire but Malone ran inside the house.

Meanwhile, the woman got her granddaughter out of their car and ran toward the officers, the complaint says. Neither she nor the child were hurt, police said.

Officers took cover behind four Oakdale squad cars outside the house. Squad-car video footage shows Malone opening a window in the home and firing three more shots. One bullet hit the windshield of a squad car near where an officer was standing, the charges said.

The Washington County SWAT team responded with an armored vehicle and took Malone into custody after he surrendered at about 12:30 a.m. Tuesday. BCA investigators recovered a .22-caliber handgun and spent shell casings from inside the house.

Police interviewed the woman, who said Malone's mood had changed earlier in the day and that she "knew she had to get her granddaughter away" from him. She texted her friend, who alerted police.

The woman told officers that Malone had a gun because he carried "all the time and everywhere." She said that as officers started showing up, Malone told her he was "tired of them following me" and "I'll die before I go back to prison."

According to the charges, Malone admitted to police that he carried the .22-caliber handgun, which he was barred from doing because of previous convictions for violent crimes, and said he believed he was going to jail because he had violated the no-contact order. He said he did not recall shooting at police.

The Oakdale police moved the investigation to the BCA, which is reviewing video footage from police body cameras and the squad car. Once the investigation is complete, the BCA will present its findings to the Washington County Attorney's Office.

Dickman, who has three years of law enforcement experience, has been placed on standard administrative leave.