Sangrur Senior Superintendent of Police (SSP) Pritpal Singh Thind said the sepoy, who was on leave, entered into three houses in his neighbourhood and killed four people and injured four others by opening fire.
Later, police asked him to surrender but he did not heed the request and was shot dead by police.
Further details are awaited.