A doctor who killed another physician at a New York City medical centre and wounded six other people before taking his own life had sent an email to a newspaper blaming hospital officials for wrecking his career.