By the CNN Wire staff

(CNN) -After a lifelong battle with mental illness, the youngest son of Pastor Rick Warren has committed suicide, his family said.

Matthew Warren, 27, died from an apparent self-inflicted gunshot wound on Friday, said Deputy Daniel Aikin, with the Orange County Coroner's Office.

The family shared news of his death in an e-mail to church staff.

Rick Warren and his wife founded Saddleback Valley Community Church, a megachurch in Southern California.

"No words can express the anguished grief we feel right now," the pastor wrote in the note, a copy of which was sent to CNN.

"You who watched Matthew grow up knew he was an incredibly kind, gentle, and compassionate man. He had a brilliant intellect and a gift for sensing who was most in pain or most uncomfortable in a room. He'd then make a bee-line to that person to engage and encourage them.

Follow the CNN Belief Blog on Twitter

"But only those closest knew that he struggled from birth with mental illness, dark holes of depression, and even suicidal thoughts. In spite of America's best doctors, meds, counselors, and prayers for healing, the torture of mental illness never subsided."

According to Aikin, Matthew Warren's body was found at his home in Mission Viejo, California, late Friday afternoon. He put the estimated time of death at around 10 a.m. that day.

The coroner's office is investigating the death. An autopsy will be conducted early next week, Aikin told CNN on Saturday.

According to a spokesman for Rick Warren, Matthew Warren worked in the Saddleback Resources Warehouse, which distributes books and DVDs.

As a pioneer of the megachurch movement, Rick Warren looked to translate traditional evangelical messages to a wider audience.

The pastor gave the invocation at President Barack Obama's 2009 inauguration and penned "The Purpose-Driven Life," a Christian self-help guide that became a mainstream best-seller.

CNN’s Belief Blog: The faith angles behind the biggest stories

"I'll never forget how, many years ago, after another approach had failed to give relief, Matthew said 'Dad, I know I'm going to heaven. Why can't I just die and end this pain?' but he kept going for another decade," Rick Warren wrote in the e-mail.

In a separate statement, his church asked for prayers and that "God's comfort and peace" be with the Warren family.

A spokesman for Warren provided a copy of a letter Warren sent to members of his staff:

Subject: Needing your prayers To my dear staff, Over the past 33 years we’ve been together through every kind of crisis. Kay and I’ve been privileged to hold your hands as you faced a crisis or loss, stand with you at gravesides, and prayed for you when ill. Today, we need your prayer for us. No words can express the anguished grief we feel right now. Our youngest son, Matthew, age 27, and a lifelong member of Saddleback, died today. You who watched Matthew grow up knew he was an incredibly kind, gentle, and compassionate man. He had a brilliant intellect and a gift for sensing who was most in pain or most uncomfortable in a room. He’d then make a bee-line to that person to engage and encourage them. But only those closest knew that he struggled from birth with mental illness, dark holes of depression, and even suicidal thoughts. In spite of America’s best doctors, meds, counselors, and prayers for healing, the torture of mental illness never subsided. Today, after a fun evening together with Kay and me, in a momentary wave of despair at his home, he took his life. Kay and I often marveled at his courage to keep moving in spite of relentless pain. I’ll never forget how, many years ago, after another approach had failed to give relief, Matthew said “ Dad, I know I’m going to heaven. Why can’t I just die and end this pain?” but he kept going for another decade. Thank you for your love and prayers. We love you back. Pastor Rick



CNN's Eric Marrapodi and Janet DiGiacomo contributed to this report.