The state’s health department confirmed it would work with police after one of its servers was hacked.