Riviera Beach police officer resigns under pressure after helping mayoral candidate