Updated

TEHRAN -- Iranian police arrested 17 boys and girls over a water fight at a seaside park in the Islamic Republic's south, a senior judicial official said Sunday.

"Seventeen young boys and girls who were squirting water at each other were arrested on Friday in one of the beach parks" in the city of Bandar Abbas, Homozgan province's justice chief Ali Alia said, quoted by ISNA news agency.

Alia added that "five were immediately let go" and that the rest were released on bail Sunday but could face sentences for publicly committing an "act forbidden" by Islam and "insulting police officers."

On July 29, several hundred youths took part in a large-scale water battle using water guns and empty bottles at Ab-o-Atash (Water and Fire) park in central Tehran after organizing the event on Facebook and through text messages.

Ten of them were arrested as photos of the event emerged on social networking websites and eventually made their way into the media but were released Saturday on bail, the Shargh newspaper reported Sunday.

Officials and conservative media denounced the event in which, according to circulated photos, soaked boys and girls -- some with their mandatory hijabs askew -- attacked each other with water pistols in the heat-weary capital.

By law, the hijab is obligatory for all women in Iran.

General Ahmad Rouzbahani, the head of the morality police, warned recently in a television appearance that police forces, in accordance with the law, "will act forcefully against this type of action and will not allow such events to happen in public places, or anywhere throughout the country."