A man in France who posted online about a deadly rampage in California in 2014 has been taken into custody and has told police investigators he had been thinking about an attack of his own, the French prosecutor overseeing the police probe in Bordeaux said Thursday.