It is understood the gun was waved at the youngsters from a car in Leasingham.
The incident was reported to police at 5.30pm yesterday (Tuesday).
A spokesman for the police said officers visited the child and his mum.
They said no further action was required other than they instructed the neighbourhood policing team to look out for any incidents of a similar nature.
If anything similar happens to anyone, they should call 101.