Pakistani police have arrested four men over the murder of a pregnant woman who was bludgeoned to death outside a court.