An order of the district court suspending a public officer from the exercise of the office, after the filing of a petition for the removal from office of such officer, shall, from the date of such order, automatically suspend the further payment to said officer of all official salary or compensation until said petition has been dismissed, or until said officer has been acquitted on any pending indictments charging misconduct in office.