Answer:
Yes, it is a foul, the referee will award the defender with a red card since he is the last man and restart the play by a free-kick.
A free-kick refers to a technique for restarting play in affiliation football, in which a player is permitted to make a take a shot while the defenders are 6 to 7 steps away from the ball. A free-kick can either be an indirect and direct free kick.