Iranian President Hassan Rouhani speaks during a ceremony celebrating the 40th anniversary of the Islamic Revolution, at the Azadi, Freedom, Square in Tehran, Iran, Monday, Feb. 11, 2019. Speaking from a podium in central Tehran, Rouhani addressed the crowds for nearly 45 minutes, lashing out at Iran's enemies - America and Israel - and claiming that their efforts to "bring down" Iranians through sanctions will not succeed. (AP Photo/Vahid Salemi)
Vahid Salemi/AP
Iranian President Hassan Rouhani speaks during a ceremony celebrating the 40th anniversary of the Islamic Revolution, at the Azadi, Freedom, Square in Tehran, Iran, Monday, Feb. 11, 2019. Speaking from a podium in central Tehran, Rouhani addressed the crowds for nearly 45 minutes, lashing out at Iran's enemies - America and Israel - and claiming that their efforts to "bring down" Iranians through sanctions will not succeed. (AP Photo/Vahid Salemi)
Now playing
01:37
Iran's Rouhani: Iran will beat US sanctions
CNN's Becky Anderson speaks with Fatima Gailani, an Afghan women's rights activist and government peace negotiator, about her views on the planned withdrawal of foreign troops from Afghanistan.
CNN
CNN's Becky Anderson speaks with Fatima Gailani, an Afghan women's rights activist and government peace negotiator, about her views on the planned withdrawal of foreign troops from Afghanistan.
Now playing
03:49
Afghan negotiator: I'm worried about withdrawal without peace
Prince Charles and his wife Camilla, Duchess of Cornwall, took in flowers left in tribute to his recently deceased father Prince Philip. The flowers had initially been left outside Buckingham Palace but were moved over the road to Marlborough House.
UK Pool via ITN
Prince Charles and his wife Camilla, Duchess of Cornwall, took in flowers left in tribute to his recently deceased father Prince Philip. The flowers had initially been left outside Buckingham Palace but were moved over the road to Marlborough House.
Now playing
01:56
Prince Charles and Duchess of Cornwall view tributes for Prince Philip
screengrab afghanistan taliban
AFPTV
screengrab afghanistan taliban
Now playing
03:50
How Taliban may run Afghanistan after US troops withdraw
Tokyo Olympics 100 days countdown Essig pkg intl hnk vpx_00000000.png
Tokyo Olympics 100 days countdown Essig pkg intl hnk vpx_00000000.png
Now playing
03:14
Growing concerns over Tokyo Olympics Covid-19 safety measures
screengrab japan fukushima daiichi
IAEA
screengrab japan fukushima daiichi
Now playing
02:31
Japan plans to release treated Fukushima water into sea
SUEZ, EGYPT - MARCH 29: The container ship 'Ever Given' is refloated, unblocking the Suez Canal on March 29, 2021 in Suez, Egypt. This morning the container ship came partly unstuck from the shoreline, where it ran aground in the canal last Tuesday, and later resumed its course shortly after 3pm local time. The Suez Canal is one of the world's busiest shipping lanes and the blockage had created a backlog of vessels at either end, raising concerns over the impact on global shipping and supply chains. (Photo by Mahmoud Khaled/Getty Images)
Mahmoud Khaled/Getty Images
SUEZ, EGYPT - MARCH 29: The container ship 'Ever Given' is refloated, unblocking the Suez Canal on March 29, 2021 in Suez, Egypt. This morning the container ship came partly unstuck from the shoreline, where it ran aground in the canal last Tuesday, and later resumed its course shortly after 3pm local time. The Suez Canal is one of the world's busiest shipping lanes and the blockage had created a backlog of vessels at either end, raising concerns over the impact on global shipping and supply chains. (Photo by Mahmoud Khaled/Getty Images)
Now playing
00:57
Egypt seizes Ever Given ship, asks for $900M in compensation
Taiwan has been the chief source of tension between Washington and Beijing for decades and is widely seen as the most likely trigger for a potentially catastrophic US-China war. The worry about Taiwan comes as China wields new strength from years of military buildup. CNN's David Culver reports.
PLA Air Force/Weibo
Taiwan has been the chief source of tension between Washington and Beijing for decades and is widely seen as the most likely trigger for a potentially catastrophic US-China war. The worry about Taiwan comes as China wields new strength from years of military buildup. CNN's David Culver reports.
Now playing
04:04
Dramatic videos show Chinese naval exercises amid rising tensions over Taiwan
CNN
Now playing
05:40
Unprecedented footage shows front line of Ukrainian conflict with Russia
5995404 02.09.2019 Iranian Foreign Minister Mohammad Javad Zarif attends a news conference following his meeting with his Russian counterpart Minister Sergei Lavrov, in Moscow, Russia. Iliya Pitalev / Sputnik  via AP
Iliya Pitalev/SPTNK/Sputnik via AP
5995404 02.09.2019 Iranian Foreign Minister Mohammad Javad Zarif attends a news conference following his meeting with his Russian counterpart Minister Sergei Lavrov, in Moscow, Russia. Iliya Pitalev / Sputnik via AP
Now playing
04:09
Iran accuses Israel of sabotaging nuclear site, vows revenge
Ash rises into the air as La Soufriere volcano erupts on the eastern Caribbean island of St. Vincent, seen from Chateaubelair, Friday, April 9, 2021. (AP Photo/Orvil Samuel)
Orvil Samuel/AP
Ash rises into the air as La Soufriere volcano erupts on the eastern Caribbean island of St. Vincent, seen from Chateaubelair, Friday, April 9, 2021. (AP Photo/Orvil Samuel)
Now playing
01:08
See the looming clouds of ash over La Soufrière volcano
screengrab Vanuatu villagers mourn philip
Reuters
screengrab Vanuatu villagers mourn philip
Now playing
02:03
Remote tribe worships Prince Philip as god, mourns his death
ITN
Now playing
01:15
Prince Charles speaks following Prince Philip's death
LONDON, UNITED KINGDOM - APRIL 10: The Honourable Artillery Company fire a gun salute at The Tower of London on April 10, 2021 in London, United Kingdom.  The Death Gun Salute will be fired at 1200 marking the death of His Royal Highness, The Prince Philip, Duke of Edinburgh. Across the country and the globe saluting batteries will fire 41 rounds, 1 round at the start of each minute, for 40 minutes. Gun salutes are customarily fired, both on land and at sea, as a sign of respect or welcome. The Chief of the Defence Staff, General Sir Nicholas Carter, said "His Royal Highness has been a great friend, inspiration and role model for the Armed Forces and he will be sorely missed." (Photo by Chris Jackson/Getty Images)
Chris Jackson/Getty Images
LONDON, UNITED KINGDOM - APRIL 10: The Honourable Artillery Company fire a gun salute at The Tower of London on April 10, 2021 in London, United Kingdom. The Death Gun Salute will be fired at 1200 marking the death of His Royal Highness, The Prince Philip, Duke of Edinburgh. Across the country and the globe saluting batteries will fire 41 rounds, 1 round at the start of each minute, for 40 minutes. Gun salutes are customarily fired, both on land and at sea, as a sign of respect or welcome. The Chief of the Defence Staff, General Sir Nicholas Carter, said "His Royal Highness has been a great friend, inspiration and role model for the Armed Forces and he will be sorely missed." (Photo by Chris Jackson/Getty Images)
Now playing
02:03
Prince Philip tributes pour in from around the world
People view flowers left in front of the gate at Buckingham Palace in London, after the announcement of the death of Britain's Prince Philip, Friday, April 9, 2021. Buckingham Palace officials say Prince Philip, the husband of Queen Elizabeth II, has died. He was 99. Philip spent a month in hospital earlier this year before being released on March 16 to return to Windsor Castle.
Matt Dunham/AP
People view flowers left in front of the gate at Buckingham Palace in London, after the announcement of the death of Britain's Prince Philip, Friday, April 9, 2021. Buckingham Palace officials say Prince Philip, the husband of Queen Elizabeth II, has died. He was 99. Philip spent a month in hospital earlier this year before being released on March 16 to return to Windsor Castle.
Now playing
01:54
Tributes to Prince Philip pour in from around the world
Britain's Prince Philip, Duke of Edinburgh, in his role as Captain General, Royal Marines, attends a Parade to mark the finale of the 1664 Global Challenge on the Buckingham Palace Forecourt in central London on August 2, 2017.  
After a lifetime of public service by the side of his wife Queen Elizabeth II, Prince Philip finally retires on August 2, 2017,at the age of 96. The Duke of Edinburgh attended a parade of Royal Marines at Buckingham Palace, the last of 22,219 solo public engagements since she ascended to the throne in 1952.
 / AFP PHOTO / POOL / HANNAH MCKAY        (Photo credit should read HANNAH MCKAY/AFP/Getty Images)
HANNAH MCKAY/AFP/Getty Images
Britain's Prince Philip, Duke of Edinburgh, in his role as Captain General, Royal Marines, attends a Parade to mark the finale of the 1664 Global Challenge on the Buckingham Palace Forecourt in central London on August 2, 2017. After a lifetime of public service by the side of his wife Queen Elizabeth II, Prince Philip finally retires on August 2, 2017,at the age of 96. The Duke of Edinburgh attended a parade of Royal Marines at Buckingham Palace, the last of 22,219 solo public engagements since she ascended to the throne in 1952. / AFP PHOTO / POOL / HANNAH MCKAY (Photo credit should read HANNAH MCKAY/AFP/Getty Images)
Now playing
01:39
The life of Prince Philip, Duke of Edinburgh
(CNN) —  

A group of Iranians attacked a morality police van in Tehran last week after two young women were detained for “improperly” wearing a compulsory headscarf, according to state-owned Iranian media and activists.

Officers fired shots into the air to disperse the crowd of people who tore off one of the doors of the vehicle, according to a report by the state-owned IRNA news agency about the February 15 incident. Iran’s morality police are tasked with enforcing the country’s strict social rules.

The group prevented the officers from driving the women away, IRNA said citing an unnamed police official. The standoff ended when the women were released from the van, according to the police source.

The incident took place in the East Tehran neighborhood of Narmak, where Iran’s hardline former President Mahmoud Ahmadinejad lives.

“When the morality police personnel were issuing a warning to two ladies with improper hijab, people in the area surrounded them and prevented them from driving the two ladies away,” the police source told IRNA. “After the two ladies got off the police van, the crowd dispersed and that was the end of the incident.”

Video of the incident showed people honking their car horns in apparent protest. A man is heard shouting “Let her go!” as a group of people surround the van. The sound of gunshots is then heard.

The headscarf, or the hijab, has been a mandatory part of women’s dress in Iran since the 1979 Islamic revolution led to clerical rule of the country.

But in recent years, some women have mounted opposition to headscarf rules by staging sporadic street demonstrations, some of which have gone viral on social media.

Many women have also observed the dress rules more loosely in recent years. While signs instructing women to wear hijab adorn the walls of nearly every shop and restaurant, many wear short scarves which only slightly cover their heads.

In Iran’s ski resorts, for instance, signs admonish female skiers to “obey Islamic affairs,” but many swap their headscarves for ski hats. The morality police, who for years were said to chase transgressors down the slopes on skis, have a dwindling presence in these areas.

The penalty for breaking hijab rules is also being reduced, with fines of around $15 becoming more common than arrests.

For commentators and activists, the incident in Tehran may be a sign of more acts of rebellion against the morality police to come.

“Iranians are very angry with morality police these days,” tweeted Masih Alinejad, the Iranian activist behind the “White Wednesday” social media campaign against mandatory hijabs.

Update: This article has been updated to remove a tweet containing images that CNN could not independently verify. This is a developing story and will continue to be updated.