You can kill them, but then you will have to accept the karmic consequences.

One of my Buddhist Japanese friends who does flower arranging apologizes each time she cuts a flower from the plant. You may be able to mitigate some of the mosquito-killing karma by apologizing to the mosquito as you squash its little body, but your apology would have to be sincere!