A characterization of minimal homogeneous Banach spaces