Police have raided the western Sydney home of a teenager charged with threatening a police station on his Facebook page.

The 17-year-old student, who attended the same school as the teenager who fatally shot a police accountant last week, was charged on Tuesday night with assaulting and intimidating police, two counts of resisting arrest and using a carriage service to menace, harass and offend.

Police seized two laptops and other items after raiding the boy's home at Guildford. Officers were at the house for more than an hour.

Neighbour Maggie Semaan said the student and his family were good neighbours.

"They're very nice people. They're quiet. We've never known that there was any trouble," she said.

Sorry, this video has expired Police carry out belongings of a teenager who allegedly threatened a police station on Facebook.

"Good and quiet and friendly. They're very nice people."

She said she was surprised to hear the teenager had allegedly threatened police.

"Shocked. What can we do? I know we have to be scared but I've known the people," she said.

"They seem quiet people, very nice people. We've never heard anything about them that's bad."

The teenager has been given strict conditional bail and will appear at a children's court on November 9.

Police said they spoke to the teenage boy on his way to Arthur Phillip High School in Parramatta on Tuesday morning in relation to alleged posts on social media.

The teenager was given strict conditional bail and will appear at a children's court in November. ( AAP: Paul Miller )

He was arrested outside the school.

It is alleged he used Facebook to post a video showing New South Wales Police Commissioner Andrew Scipione discussing Friday's shooting, and wrote the caption "merryland [sic] police station is next hope they all burn in hell".

Police said he threatened and intimidated officers who spoke to him near the school on Tuesday morning.

On Friday, fellow student Farhad Khalil Mohammad Jabar shot and killed 17-year police force veteran and accountant Curtis Cheng at close range outside the NSW Police headquarters in Parramatta.

The Year 10 student was killed by police in front of the building after he fatally shot Mr Cheng.

There was a heavy police presence at the school on Tuesday morning, which is just metres from the scene of last week's fatal shooting, as students returned for the first time since the attack.

The NSW Department of Education offered counselling to students and teachers.

Several students expressed their shock at the shooting incident, describing Farhad as quiet, polite and "a nice kid".

Students who knew Farhad said he enjoyed playing basketball at the school.