According to the Boston Globe, cause of death was a "heart attack". The flight attendant who attempted to resuscitate the pilot was formerly an emergency room nurse. There was a physician seated in row 1F, but there apparently was no request for help.
Pilot dies on Boston-bound American Airlines flight - The Boston Globe
Audio here
Audio: Medical emergency on Boston-bound flight - The Boston Globe