New York legislator faces charges in attack on photographer