Constraints on a variable dark energy model with recent observations