Police link Tunisia beach massacre to museum attack