Police and armed residents have killed 28 gang members after they attempted to attack a suburb of Haiti’s capital.