Massachusetts mall intruder caught after search