A man has been shot dead inside a pub in what is believed to be a targeted attack. The man, who is yet to be formally identified, was unable to be saved by emergency service workers after he suffered gunshot wounds.

Emergency services were called to the Canley Hotel in Canley Heights, Sydney at about 11.45am on Friday. Despite attempts to resuscitate the man in his 40s, he could not be saved.

The area was cordoned off by police and pubgoers were escorted out of the building. There is a huge police presence outside the pub, with heavily armed officers at the scene.

The incident took place in the pub just before midday

The area is in lockdown and motorists are urged to avoid Canley Vale Road and surrounding streets. NSW Police Superintendent Craig Middleton said police believed it was a targeted attack.

"Given the nature and circumstances that I've been told, this male was inside the premises, I think he was about to sit down to have a meal, and from what I've been told, some persons of interest walked into that hotel and shot that male directly," he said.

Witnesses described the shooting as an "execution-style" attack, according to 2GB reports. Federal Member for Fowler, Dai Le, posted on social media that she had to close her electorate office, located two doors down from the Canley Hotel.

She wrote: "My thoughts are with everyone affected, their families and our first responders. Please be patient, avoid the area if you can and follow directions from police."

Investigations continue and the circumstances of the shooting are yet to be revealed. It is understood police are working to secure CCTV from surrounding businesses.

Anyone with information is urged to contact Fairfield City Police or Crime Stoppers on 1800 333 000