At least 40 people were killed after gang members attacked displaced persons sheltering inside a church outside Haiti's capital city.