Two separate explosions shook Punjab near military installations, prompting investigations by security forces.