BOSTON — A granddaughter of Robert F. Kennedy died on Thursday afternoon after suffering an apparent overdose at the Kennedy compound in Hyannis Port, Mass., according to two people close to the family.

The young woman, Saoirse Kennedy Hill, 22, was the daughter of Courtney Kennedy Hill. She was at the compound, where her grandmother, Ethel Kennedy, lives, when emergency responders were called on Thursday afternoon, the family friends said. She was taken to Cape Cod Hospital in Hyannis, where she was pronounced dead.

“Our hearts are shattered by the loss of our beloved Saoirse,” the Kennedy family said in a statement. “Her life was filled with hope, promise and love.”

The statement quoted Ethel Kennedy, 91, Robert F. Kennedy’s widow, as saying, “The world is a little less beautiful today.”