If it was a direct free kick (near the goal), the referee may lock the ball. He should ask the attacking team, if they want to take it quick or slow. If they want it slow and ask the referee for the correct distance between wall and ball, the ball is available with a whistle again. Though, the ball is usually only locked if the attacking team asks for the right distance between ball and wall. See this link. This is why most defending teams set a player direct in front of the ball, so the attacking team has to ask the referee for the distance.
So, if an opponent blocks a ball from a locked free kick on purpose and is closer than 9.15m to the ball, the opponent should get a yellow card and the kick is repeated.
Unfortunately, the communication between players and referees, in amateur leagues, often is very poor and the referee does not manage to show/say the players what he has decided and planed to do next.
You might find this interesting: