Brocade CEO to resign, profit beats estimates