A terrorist who stabbed and lightly wounded a reserves soldier on Tuesday morning died after being shot by security forces.