All-optical Hall effect by the dynamic toroidal moment in a cavity-based metamaterial