Sydney teenager arrested over posts after police shooting Published duration 6 October 2015

image copyright David Spicer/ABC image caption Police arrest an Arthur Phillip High School student as classes resume for the first time since Friday's deadly shooting just metres away

A Sydney teenager from the same school as the 15-year-old who shot dead a police worker on Friday has been arrested on his way to class.

Police said the boy was asked about alleged social media posts, but became threatening and intimidated officers.

Facebook posts which local media say were written by the boy, who has not been named, defended and praised teen gunman Farhad Jabar's actions.

Jabar was shot dead by police after killing police veteran Curtis Cheng.

New South Wales Police Commissioner Andrew Scipione on Saturday said Jabar's actions were politically motivated and therefore linked to terrorism.

image copyright AAP image caption Farhad Jabar, 15, was killed in a shootout with police on Friday after he gunned down police accountant Curtis Cheng

The boy detained on Tuesday was taken away in handcuffs for further questioning at Parramatta Police Station.

He told the Australian Broadcasting Corp. that police had taken offence to him filming them on his phone as they patrolled outside the school.

Media reports said he had written posts on Facebook saying the nearby Merryland police station "is next".

The arrest comes as classes resumed for the first time since Friday's shooting, and the end of school holidays.

image copyright Reuters image caption According to some reports, the gunman Farhad Jabar shouted religious slogans before carrying out the attack in Parramatta on Friday

The NSW Department of Education is offering counselling to Arthur Phillip High School students and staff.

image copyright NSW Police image caption Curtis Cheng (far left) worked at the New South Wales Police Headquarters which is 300m from Arthur Phillip High

Police accountant Curtis Cheng, 58, was gunned down on the street as he headed home for the long weekend.

Floral tributes were laid for Mr Cheng outside the New South Wales Police Headquarters over the weekend, which is 300m from Arthur Phillip High, by friends, colleagues and even strangers.