An estate agent has apologised after drawing criticism from local residents for putting up a gate at its Grade II listed branch that stopped a homeless man and his dog from sleeping in the entrance.

Locals in Whitstable, Kent, took to Facebook to complain about the gate and national newspapers picked up the story, highlighting that the agency helps to sell £1m properties.

Rory Patterson, director of Harvey Richards & West, said that the gate was put up as a “last resort” after more than two weeks of access disruption, client complaints, litter, uncleared wet dog food and strong urine smells.

The gate has now been removed and Patterson said a member of the agency staff has contacted homeless charity Porchlight to help the individual and were told to direct him to a shelter in Canterbury.

Patterson said: “As a small independent business which operates outside of normal working hours, sometimes up until 7pm or 8pm, staff have been having trouble accessing the office late in the evening.

“We have had a few conversations with the young man explaining this but unfortunately the office access remained an issue.

“We received several phone calls from clients and members of the public expressing concern about him and the mess outside our shop on weekends.

“We were not initially that concerned as we fully understood the poor guy’s situation so left him alone.

“We then had a report from close friends that one of them had approached him last Saturday evening to check on him and he reacted in an extremely rude manner using the C word towards the wife at which point the husband called me.

“Another resident of the town reported to the staff that he had witnessed him packing his belongings early to leave then turned back and urinated in our doorway.

“This has been an extremely difficult issue to handle especially at this time of year and we hope he is found accommodation soon and can categorically state that we did not intend to cause him or anyone else offence or upset so profoundly apologise.”