Japanese officials said the attack took place inside the Keio train near the Kokuryo station.
The attacker, only identified as a man in his 20s, was detained after a knife and fire attack on the train, Japanese media said.
At least fifteen people were reportedly injured and one in a serious condition.