The man and teenager were arrested by the group's "Islamic police" and were then convicted by a court run by the militants, with the organization's self-proclaimed judge calling the sexual acts "immoral.