A security guard at a troubled Brooklyn apartment building watched as a man and his stepson were fatally shot outside their door — and then callously shared the gruesome footage online, a $10 million lawsuit says.“Somebody was behind the camera,” said Marie Delille, 50, still grieving the loss of her husband and son more than a year after they were gunned down in the Flatbush Gardens building.“The camera was tracking the shooting,’’ she said of the surveillance device, allegedly being watched by the guard in real time.The security worker didn’t even call 911 — and then did the unthinkable, posting the footage online, according to Delille and her lawyer.When Delille ended up frantically dialing 911 for help, the operator made clear that police hadn’t received word of the shooting until she alerted them, she said.“He didn’t pull the trigger, but he committed a double crime: failing to dial 911 and then putting the video out there,” she told The Post on Friday.“The whole world watched my husband and son die.”Delille herself witnessed the Oct.29, 2023, bloodbath, in which downstairs neighbor Jason Pass shot her 27-year-old son Chinwai Mode and her doting husband of 20 years, 47-year-old school bus driver Bladimy Mathurin.It was the culmination of years of harassment based on their Haitian background that the family suffered at the hands of Pass, according to Delille and her suit, filed this month against Flatbush Gardens’ owners, Renaissance Equity Holdings and Clipper Reality.Management knew about Pass’ past “erratic and threatening behavior” — but failed to take action, charges the complaint, which includes claims of negligence and wrongful death.While the security guard is listed as anonymous in the court papers, Delille is also suing the building based on the employee “releasing from their custody and control the full building surveillance video showing the tragic murders immediately after they occurred and without notice to ...