So I'm not entirely sure what family this instrument belongs to but I assume it's percussion because it's used in a percussive way. It almost sounds like multiple sticks snapping and clacking at once. Generally used in tense or suspenseful scenes in movies and TV shows. It was used in Hans Werner Henze's "Fantasia For Strings" and Krzysztof Penderecki's "Polymorphia", which were both used in the movie "The Exorcist". I also believe it was used in the X Files but can't remember a specific scene. Here are some examples of where it can be heard:
right in the beginning: https://www.youtube.com/watch?v=xLm0DIS4fVo
at 0:24: https://youtu.be/_mkkFLy-12U?t=23