When you play football (soccer) and you kick the ball into your own net, you score an own goal. If we do something that we hope will benefit us but it actually makes the situation worse, we score an own goal.
My boss has scored an own goal by stopping us eat at our desks. Nobody does any work during lunchtime now. We all go to the cafe instead.