A mob of German teens attempted to free their friend from a police station after he was arrested for an aggressive drunken display.

German newspaper Süddeutsche Zeitung and news wire dpa reported the incident occurred Thursday night in the town of Starnberg.

The 15-year-old boy was arrested as he tried to get into a high school graduation party.

The boy, who did not attend the school, became aggressive when a guard would not let him into the party, and police were called.

That's when the group of about 100 students made their way to the station in an effort to break their friend out.

About 50 of the students threw bottles and rocks at the station, Süddeutsche Zeitung reported. According to dpa, police from nearby stations were called to quell the crowd.

Edda the pug:Dog sold on eBay caught in middle of legal battle between family, buyer and German town

At least one window was broken and some of the students tried to remove a police shield from the door, Deutsche Welle reported.

The school's headmaster apologized and said that most of the teens in the group were not enrolled at that school, Süddeutsche Zeitung reported. The students involved were writing apology letters to police.

None of the students managed to enter the building, but at least two were temporarily detained, dpa reported.

The boy originally arrested was released to a hospital after complaining of a headache.

Contributing: The Associated Press

Follow USA TODAY's Ryan Miller on Twitter @RyanW_Miller