Why isn't my detector rail igniting my TNT?

Redstone wire is a little tricky with how it can and can't turn. Replacing the sandstone under your TNT with more TNT and running the wire straight up to that should detonate it.

Alternately, elevate your wire to the level of your TNT before it reaches it, and have the wire run straight into your lowest TNT block.