Dynamics of the resistive state of a narrow superconducting channel in the ac voltage driven regime