State of emergency in effect for Erie County; curfew from 10:30 p.m. to 7 a.m. due to protests