You absolutely have a safety on this play. All of the PSK provisions are met: the kick was not a successful try or FG, it was not in OT, the ball crossed the neutral zone, the foul occurred before the end of the kick, and Team B will next put the ball in play. So now we apply the 3-1 principal with the PSK spot (B3) as the basic spot, the foul occurred in the endzone, behind the basic spot, so we penalize from the spot of the foul which leaves us with a safety. While the rule only says fouls by Team A result in a safety if they're in the endzone, A.R. 8-5-1-II and V both apply this principal to Team B and rule it a safety.