Obama concerned over Pak military, intel links with extremists