Two people have been killed in attacks at a shopping mall and a home in Massachusetts, and the suspect also is dead.