Registered sex offender robs grandmother at gunpoint