A gunman who opened fire in a French high-speed train before passengers pounced on him said he only intended to conduct a robbery, not a terror act, his attorney said.