Passengers were not told apparently, and only knew something was amiss when emergency vehicles approached the plane after it landed. There had been an announcement on whether there were any doctors on-board, and several passengers apparently responded.
Assuming these were doctors, and they pronounced him deceased, this would explain why no earlier diversion to Bangor or Boston.