England’s Ben Stokes has apologised for his foul-mouthed reaction to “repeated abuse from the crowd” during the fourth Test against South Africa, with the tourists formally requesting additional security as a result of outburts from supporters.

Stokes had just been dismissed for two on day one in Johannesburg when he became involved in an angry exchange with a fan.

Stokes appeared enraged by the nature of the the comments that were hurled at him – which are understood to have included expletives as well as a reference to red-haired pop singer Ed Sheeran – and responded with a colourful volley of his own.

The incident was captured by host broadcasters SuperSport before being repeated by Sky in the UK and shared widely on social media.

“I wish to apologise for my language that was heard on the live broadcast today after my dismissal. I should not have reacted in that way.

“As I was leaving the playing area, I was subjected to repeated abuse from the crowd. I admit that my reaction was unprofessional, and I sincerely apologise for the language I used, especially to the many young fans watching the live telecast around the world.

“Throughout the Tests so far, the support from both sets of fans (England and South Africa) has been brilliant. One incident will not ruin such a competitive series, which we are determined to win.”

Ashley Giles, managing director of men’s cricket at the England and Wales Cricket Board, was in attendance and revealed it was not an isolated incident.

He revealed that the backroom team had also been abused and that Cricket South Africa had been asked to review its arrangements at the ground.

“It is disappointing that a member of the public has gone out of their way to abuse Ben as he was leaving the field,” said Giles.

“Ben is fully aware that he should not have reacted in the way that he did and apologises for his actions.

“In addition to this incident, members of our support staff were subjected to personal abuse during and after the day’s play. We have requested to the venue to ensure that security and stewarding are enhanced for the remainder of the match so that players and staff members can go about their duties without provocation.”