Alleged gangster killed at court