Dear Mark,
Welcome to the Gama community.
In order to find the closest agent, there is a quite intuitive operator closest_to, then you can see if the distance threshold is met, if not exclude the agent until you find a match. I'll let you dig into this direction, while there exists many other solutions, for example using the buffer operator to represent the range around the mosquito, then overlaps to identify human agents within the area, looking at the closest one.
As a global advice, you should first try to figure out an answer by yourself, looking at the list of operators, other questions previously asked here or models library and tutorials, before asking the community. Providing code examples, as well as, background about your model and/or question is also a bit more engaging for those who try to help you. For instance, using spatial operators will be heavy in terms of computation, which might not be suitable if you plan to have many mosquito agents (switching to a grid based "distance" metric is a light alternative).
Best,
Kevin