New York State has ordered flags on all state buildings to be flown at half-staff until two fallen National Guard members are buried.