Additional staff will be monitoring the gates of a primary school following an incident in which an 11-year-old girl was approached by a man.