Very high energy gamma-ray observation of the peculiar transient event Swift J1644+57 with the MAGIC telescopes and AGILE