A 20-year-old man was fatally shot Monday night in front of a Brooklyn building that is attached to a church, cops said.

The man was in front of St. George’s Court, an apartment building on Gates Avenue near Marcy Avenue in Bedford-Stuyvesant, when he was blasted in the chest around 10:30 p.m., according to police. The building is connected to the side of St. George’s Episcopal/Anglican Church.

He was rushed to Woodhull Hospital where he later died, cops said.

Cops did not immediately release the victim’s name, and they did not have information on motive or a suspect description early Tuesday.