Officer accused of making threats against Phoenix mayor decides to resign following investigation