Found this in Wikipedia
Conversion safety[edit]
In American football, if what would normally be a safety is scored on an
extra point or
two-point conversion attempt (officially known in the rulebooks as a
try), one point is awarded to the scoring team.
[21][22][23] This is commonly known as a
conversion safety or
one-point safety[24] and it can be scored by the offense.
[21][23] There are at least two known occurrences of the conversion safety in
Division I college football – a November 26, 2004 game in which
Texas scored against
Texas A&M, and the
2013 Fiesta Bowl in which
Oregon scored against
Kansas State.
[25] In both games the PAT kick was blocked, recovered by the defense, and then fumbled or thrown back into the end zone.
[26] Coincidentally, play-by-play commentator
Brad Nessler called both of these games.
[27] No conversion safeties have been scored in the NFL since 1940, although it is now slightly more likely after the rule change in 2015 which allowed the defense to take possession and score on a conversion attempt. Before 2015, the only scenario in which a one-point safety could have been scored in the NFL would have involved the defense kicking or batting a loose ball out the back of the end zone without taking possession of it.
[28] After the 2015 rule change, a one-point safety can also be scored after the defense takes possession and fumbles out of their own end zone or is tackled in it after leaving it, as in the NCAA.