A Milford lawyer claimed victory last night over longtime state Representative Marie J. Parente, a Democrat who has served on Beacon Hill for more than 20 years. John V. Fernandes, a former selectman and former school committee member, beat Parente throughout her 10th Worcester District -- in Milford, Mendon, and Upton, according to a campaign aide. Parente, who was first elected in 1982, is a vocal and staunch opponent of same-sex marriage and of extending benefits to undocumented workers. Now 78 years old, she frequently spoke of retiring, but ran for reelection time after time.