Simultaneous photometric and CARMENES spectroscopic monitoring of fast-rotating M dwarf GJ 3270