This man most likely is misguided and walked into a trap.
He may have gone to Pakistan for some other purpose, and seems Pakistani realized propaganda value of trapping a former navy officer.
What more can you expect from a [edited] except stupidity.