A man is in custody and two Toronto police officers are in hospital with non-life-threatening injuries after an alleged assault near a film set.