Brooklyn hospital network compromised by cyberattack