The suspect is said to be in his twenties.
Reports said the man entered the school wearing a mask shortly after noon.
An eight year old pupil entered the female restroom and the armed man locked the door before sexually assaulting her.
Screams were heard coming from the toilet area.
Teachers and the school principal entered in a bid to rescue the girl.
She was taken to hospital for treatment.
Scarborough police are continuing investigations.