During a trip to India last week , Prime Minister Cameron suggested Pakistan was not doing enough to counter terrorist groups within its borders that threaten India , Afghanistan and other nations .