Both testes and ovaries secrete , a hormone that inhibits the secretion of follicle-stimulating hormone from the pituitary.