Verb produce and release a substance

A threatened ladybug secretes an unappetizing substance to protect itself.