A police IT worker has been "callously murdered" and his killer shot dead as officers returned fire outside the force's headquarters in Sydney's west, NSW Police Commissioner Andrew Scipione has confirmed.
The identity of the lone gunman and his motive have not been established, Mr Scipione said at the scene of the shootings in Parramatta on Friday evening.
He said the civilian police employee was shot at close range with a handgun as he left the building for the day.
"I can tell you that this was a brutal crime, a terrible crime," he said.
Witness recalls horror of shooting
A witness to the fatal double shooting in Sydney's west says a man was yelling and wielding a gun outside NSW Police headquarters moments before he heard shots and saw a man lying on the ground.
Real estate agent Edwin Almeida says he heard shots and saw a man in a black gown pacing and waving a gun outside the police centre in Parramatta on Friday afternoon.
Mr Almeida said his frightened staff ran into their office and heard three to four gun shots.

Police are telling motorists to avoid an area near police headquarters in Parramatta after unconfirmed reports of a shooting. (Channel Seven) Source: Seven Network
"We looked out the window, saw security guards and what appeared to be a plain clothes police officer with gun drawn and pointing at the person that was now lying on the floor surrounded by a pool of blood."
Mr Almeida said afterwards he could see two bodies under sheets lying in the street.
Other witnesses have reported seeing a man in a black gown holding a gun.
Mr Almeida told AAP he could see one body lying outside the police building and the other further up the road.

A shooting has reportedly occurred at a Parramatta Police station. (supplied) Source: Supplied
He said he saw the man in the black gown lying in a pool of blood, and that his was one of the bodies.
"We asked our staff to come inside because it appeared to be a serious situation," Mr Almeida said.
Police confirmed a major operation was underway between Hassall Street and Charles Street with the public told to avoid the space.
Bodies covered in sheets near the police centre could be seen in live helicopter footage on Sky News.
Multiple police vehicles crowded the area after ambulance services were called to treat two people at 4.35pm.
Police later said a critical incident investigation had been launched following the death of two people.
"The incident occurred outside the NSW Police headquarters building on Charles Street about 4.30pm today after a number of shots were fired," the service said in a statement.
"It appears an officer has discharged his weapon, responding to a report that a person had been shot.
"Two people have died at the scene."
It said officers were still to establish the identity of those killed.