Police said they received a 911 call from a resident around 3:30 p.m. reporting an attempted abduction of two boys by a person who fled the area in a vehicle.

The resident said the person made comments to the boys and tried to get them to enter his vehicle, police said.

The caller was able to give a detailed description of the vehicle, which was broadcast to police system-wide.

Officers who were headed to the caller's home came upon a vehicle matching the description given, and the vehicle was stopped.

After an investigation, which included a positive identification of the man by the victims, police arrested an unidentified 17-year-old Sudbury boy and charged him with two counts of enticement of a child under 16.

A search of the teen's vehicle revealed evidence that supported the enticement of a child, police said.

"This was a disturbing situation, involving two young children," Police Chief Scott Nix said in a statement. "We are fortunate that they were able to get away and seek the help of an adult, which ultimately led to the arrest of this suspect today. I commend these boys for their bravery and our officers for quickly finding this dangerous suspect."

The teen was taken to the Sudbury Police Department, and the Massachusetts Juvenile probation officer ordered him to be released to the custody of his parents.

He will be arraigned in court on a day and time that will be set by the Middlesex County District Attorney's Office.