A Boston police officer has been placed on administrative leave after students from a Hyde Park charter school said he pushed them and used racist slurs last week while responding to a noise complaint at a fast-food restaurant.

In a rare move, Police Commissioner William Gross and Suffolk District Attorney Rachael Rollins visited Roxbury Prep High School on Hyde Park Avenue together Thursday to hear from students and try to foster trust in police officers.

“They’re walking away from this encounter on Friday feeling attacked and racialized and dehumanized,’’ Rollins said as she left the school. “We have to wait and see what the investigation shows, but the allegations are hate-filled and fuel distrust of law enforcement.’’