Railway blast plan foiled