An exactly solvable model for externally controlled coagulation