The Beheading
The Beheading was an event in 546.M32 where Drakan Vangorich, the Grand Master of the Officio Assassinorum rebelled against the High Lords of Terra.
Coup
In the mid-32nd millennium a great calamity befell the Imperium: the WAAAGH! Beast. The most vicious rampage made EVER by orkind drove the Imperium to its knees as dozens of Space Marine chapters were annihilated, the Imperial Fists were reduced to a single Astartes, and thousands of worlds were put to the torch. Terra itself was in a state of constant threat during a good chunk of the war.
The reaction from the High Lords of Terra varied from total incompetence to outright hindering the war effort (special note goes to the Ecclesiarch who wanted to WORSHIP the Orks and abandon the cult of the Emperor, and the Fabricator-General who just wanted to loot the Orks' tellyporta technology so the AdMech could teleport Mars out of the way, leaving Terra to its fate (extra stupid points to him since the only reason Mars was in danger was his demand that the Imperial Fists not destroy the Attack Moon so he could get the teleporter technology from it)) and thus costing more worlds and billions if not trillions of lives. Except for one (later two): Drakan Vangorich, the Grand Master of Assassins himself; and in spite (or perhaps because) of such a grim task, he was a bona fide patriot. He and Chapter Master Koorland made great efforts and manoeuvrers to get the filthy and complacent asses of the High Lords to work on the threat at hand. It suffices to say the two of them may be amongst the greatest heroes of the Imperium, for without them mankind would have been annihilated or reduced to savagery a la the Age of Strife.
Once the war was over, Drakan realized that, should there be another threat of a similar caliber, mankind would be wiped out due to the incompetence of the High Lords. This was especially evident when, as The Beast sent his diplomats asking for their surrender (yes, Ork diplomats had become a thing, thanks to the Beast), the High Lords were more concerned about their own political power than saving mankind. The final straw came when Vangorich found out that the Fabricator-General had teleported Ullanor away (instead of Exterminatus-ing it; the planet eventually became Armageddon). For the sake of the Imperium, the High Lords needed to die, and die they did. With the resources of the Assassin's temples at his call, it wasn't too hard for Vangorich to kill / replace every other member of the High Lords within 5 days. Vangorich himself was left top dog of the High Lords and had the rest of the council replaced with impostors or puppets making him sole ruler of the Imperium, which he led for about one-hundred years.
Vangorich's intentions were good, but he grew increasingly paranoid about the Imperium ever backsliding back into the state it had been before the Beast invaded. So while on the good side he did rebuild the Imperium's armed forces and restored planets that had been ravaged by the orks, his reign was marked with massacres, vicious reprisal, harsh punishment, and increasingly totalitarian control (so, literally nothing changed from before and after the Age of Apostasy except the people getting executed probably deserved it and the Imperium established actual authority over its members instead of letting them shit all over their own citizens). The Imperium remained strong and united under his rule (recovering well enough to sustain the Fourth Founding), but Terra finally grew sick of living in constant fear of their single ruler as he grew more and more erratic. The Astartes and Inquisition, agreeing on a unified goal for a change, decided that it was time to relieve Drakan Vangorich from office. Every other department in the Imperium stepped aside to let them do it (well, I mean, no other departments have military strength except the Administratum and the Inquisition could just flash their rosettes in that case). This might actually have been a terrible thing as it meant the Imperium lost all of the benefits of Vangorich's rule and kept all of the downsides (which already existed long before and long after the Age of Apostasy anyway and so really were irrelevant). Especially when you notice the only people harmed were those who were guilty of harming the Imperium. The lore doesn't say anything innocent people being hurt. Just that his actions were over the top compared to...what exactly? If you don't want to suffer the massacres, vicious reprisals, and harsh punishments then don't commit crime or abuse your position. Duh. And increasingly totalitarian control for a government that has almost zero power over its member governments is probably a good thing as it can finally get some quality control.
Response
A strike force of 400 marines led by the Imperial Fists under Chapter Master Maximus Thane and supported by elements of newly created chapters (The Halo Brethren and Sable Swords specifically) landed on the Imperial palace to hunt down Drakan and seize control of the Senatorum Imperialis. The Officio responded in kind, deploying its most lethal operatives: the landing zones became killzones filled with snipers and the disembarking Astartes were assailed by hundreds of assassins from various temples. Callidus and Culexus harassed their advance, while Vindicares took shots at them from every angle. Venenum and Vanus operatives probably worked from behind the scenes to hinder their advance, but strangely no Eversor assassins were present. Despite losing half their numbers in the process, the Astartes managed to carve their way through the assassins and clear out the Senatorum for the most part. Thane then confronted Inquisitorial Representative Wienend, who revealed Vangorich had fled to the Eversor temple at the North pole. Both had a row of words lamenting the situation before Thane departed to hunt Vangorich down. Wienand stayed behind to die by a bomb trap Vangorich had placed in the Senatorum (she was aware of it, but felt it appropriate to go out with a bang given the circumstances).
The remains of the strike force assaulted the temple and confronted Vangorich, who had some final words with Thane, with both accusing the other of having some responsibility for the current situation (to be fair, running the Imperium would eventually drive anyone crazy, and Thane really should have stayed behind to help get things in order instead of crusading). Regardless, Vangorich sprung his trap by flooding the room with smoke and unleashing one hundred Eversors on the Astartes. The two forces cut each other down till only three remained: Chapter Master Thane of the Imperial Fists, Vangorich, and a single Eversor (Beast Krule, a former favored assassin of Vangorich who had been forcibly converted into an Eversor after betraying Vangorich earlier). Vangorich ordered Krule to cut down Thane, but the Assassin broke his programming long enough to refuse, giving Thane time to get a bead on Vangorich. Oddly, Vangorich's last words were asking if Thane would like to know how Konrad Curze died (possibly drawing a parallel between their intended roles in the Imperium) but Thane was having none of it, killing him before he could answer.
Over the next millenia, many reformations were implemented to prevent one person gaining complete control of the Imperium and causing such trouble (abolishing the position of Lord commander of the Imperium, for instance, because that position had...never been abused and always was the one thing keeping humanity alive in the face of overwhelming incompetence from everyone else...fuck), helped along by a certain asshole being another great example of what the Imperium does NOT need in a leader. Also, the Ordo Sicarius was set up to keep some assassins pointed at the assassins.
Aftermath
In the immediate aftermath of Vangorich's death the Imperium fell into a state of anarchy, as everyone and their sisters vied for a place in the new version of the Senatorium Imperialis, leading (ironically as Vangorich had predicted) to yet another period of anarchy due to human incompetence. For a century long there was no central leadership and no official successors for the High Lords as people vied and struggled for political power. Luckily Agnathio, the then-Chapter Master of the Ultramarines got fed up with this shit real quick, gathered up no less than fifty of his fellow Chapter Masters and their Space Marines; and they all set course for Terra where they proceeded with cock-slapping everyone in the Senatorum until once again twelve High Lords were chosen, finally restoring stability to the Imperium.
In an amusing twist, the Imperium studied scientific-ish Ork tech to re-create the actual Dark Age of Technology ability to teleport planets (DAoT could teleport star systems, though) out of danger or fortress worlds right to the enemy. In a less amusing but unsurprisingly stupid move, this technology was not used to do exactly that ever or in the future and was not used for ship interstellar travel, either.
Clash of the Canon
One of the Chapters who fought against the Assassins was the Sable Swords. The Chapter that is currently known as the Sable Swords was formed to replace the remnants of the Astral Knights, nearly wiped out during their siege of The World Engine… which was in 926.M41. 9380 years later. It is possible that they have been refounded after their destruction (like with the Minotaurs), but this is not being hinted in what is known about them like with the Minotaurs. Or it could have been another fuckup, who knows.
The Offical Canon does however list the Sable Swords as Losing over 800 Marines in the fighting. So they were most likely Massacred and re-built.
In addition, there's a footnote in the fluff that says the administratum didn't realise that there were two chapters named the Sable Swords until both were destroyed in fighting in the 13th Black Crusade. This probably explains it. Although, given there's only around a thousand loyalist Chapters and they're kinda just a teeeensy bit important, you'd think even the Administratum would do its utmost to keep track of every little thing related to the Adeptus Astartes. Especially after a certain infamous temper tantrum.