Three terrorists killed while placing bomb on railway track