A report of a man viewing sexually-explicit images while at school is being investigated by Police Scotland