Man sentenced to prison for indecent solicitation of a child