A gunman opened fire outside the police headquarters in Sydney on Friday and killed a police IT worker before he was shot dead. 

There were at least two bodies seen outside the NSW Police headquarters in Parramatta, according to the the Daily Telegraph

The gunman, who was said to have a 'Middle Eastern' appearance shot dead a police IT official in and was then killed by police forces, the newspaper reported.  He was reportedly dressed in black. 

The emergency services received a call about a man opening fire outside the police station at 4.30 pm local time The Sydney Morning Herald reported.

The person who was killed by the gunman was a civilian employee at the police headquarters, according to the newspaper. 

The police reportedly had received intelligence inputs of a likely attack. It is not clear if Friday's incident was a terror attack. 

"Four five shots fired by man outside our office and in front of NSW police head quarters. Man shot down by guards and detectives," a witness in an office opposite to the police headquarters said on Facebook. 

Last December, a gunman had held many people hostage at a cafe in Sydney, and the crisis led to the death of two hostages before the shooter was killed by the police.