ATOMS: ALMA Three-millimeter Observations of Massive Star-forming regions - V. Hierarchical fragmentation and gas dynamics in IRDC G034.43+00.24