Prince William "was devastated" after the suicide of a nurse tricked by pranksters posing as Queen Elizabeth II and King Charles.