Radiative transfer of ionizing radiation through gas and dust: stellar source case