D5-brane in AdS black holes with nonzero gauge flux