A medical and professional office building near downtown Somerville has changed hands for more than $1.1 million, in a deal arranged by Deluccia Commercial Group.