The terrorist who carried out the attack was killed by gunfire.