Pakistan court grants bail to journalist detained after probing protest, lawyer says