Symmetries on contact manifolds and almost S-manifolds