A 25-year-old District man was sentenced to five years in federal prison Monday for attempting to rob an armored car in February — a hold-up that was foiled by FBI agents and D.C. police.

Authorities said that Daniel Chapman was one of three heavily armed assailants who tried to rob a Brinks armored car on Feb. 12 in Northeast Washington. Chapman brandished a silver revolver during the attempted robbery, according to court papers filed by federal prosecutors Erin B. Andrews and Catherine Connelly.

But before Chapman and the others could pull off the heist near V and 31st streets NE, FBI agents and D.C. police swarmed the scene and arrested them, prosecutors said.

In May, Chapman pleaded guilty to using a firearm during a crime of violence. U.S. District Judge Richard W. Roberts sentenced Chapman to the mandatory minimum prison term.

Prosecutors said the crime was brazen and dangerous, and the robbers, armed with handguns and an AK-47, risked the lives of the car’s guards and bystanders.

“Although no one was physically harmed during the commission of this offense, the potential for violence was very real,” Connelly and Andrews wrote in court papers. “The defendant and his co-defendants were heavily armed, and the attempted robbery occurred in broad daylight near a busy metropolitan area.”

Chapman had no prior arrest record and was a high school graduate. His grandmother and mother both spoke for him at sentencing, and Chapman said the robbery was a “wake up call” to turn his life around.

“I am very remorseful for what I have done,” he said.

Two others have been charged in the robbery — Nathaniel Bailey, 57, and Ricardo Hunter, 53.