Gandapur booked in terrorism case