Indian court grants bail to four terror accused