They were most likely not targeting dharmasala. The intact missile this deep in indian territory means only one thing - it has an electronic detonator and when we spoofed its guidance, its detonator also got jammed.
So it flew in trajectory till it ran outta gas and went klunk on the ground.
Typically if its an active homing missile, it will enter terminal phase and either detonate or break apart due to terminal velocity of homing phase- coz even if detonator is jammed, it is still homing.
An intact missile this deep means it just ran outta gas, fell outta the sky like a glide vehicle and failed to detonate.