VIRGINIA BEACH, Va. (WVEC) -- Police said a 17-year-old male is in custody after being accused of assaulting and robbing someone earlier this morning.

The victim of the incident reportedly flagged down a police officer in the 4800 block of Shore Dr. just after 2:30 a.m.

They said they had been assaulted and robbed by someone with a gun.

The victim told police what the suspect looked like and officers were able to find and arrest the juvenile in the 4700 block of Price Cir.

The person assaulted had minor injuries and was treated on scene.

The juvenile is charged with robbery, conspiracy and use of a firearm in the commission of a felony.

Police said a second 17-year-old, a male charged with attempt capital murder of a police officer, was also charged in connection with the incident.

His charges include robbery, malicious assault, use of a firearm in the commission of a felony and conspiracy to commit robbery.