Man accused of killing two, wounding three in northern Maine shootings