The result of the play is a safety:
If B accepts the foul, then it's enforced from where the pass is thrown, in the end zone. If B declines the foul, the ball is spotted where the illegal pass is thrown from, in the end zone.
Free kick from the A 20; clock starts with the first LEGAL touch of the free kick.