2 arrested in beating of same man in Woonsocket and Milford