Russian FSB detains man planning to blow up railways