Field #3 of the Palomar-Groningen survey. II. Near-infrared photometry of semiregular variables