Higher-rank discrete symmetries in the IBM. II Octahedral shapes: Dynamical symmetries