City closes beach for swimming