Pakistan were bowled out for 142 in their first innings before tea on day three of the first day-night test against Australia in Brisbane on Saturday, conceding a first-innings lead of 287 runs.
The hosts decided not to enforce the follow-on and will try to bat Pakistan out of the game.
Wicketkeeper Sarfraz Ahmed and Mohammad Amir resumed with Pakistan on 97-8 and built a plucky 54-run partnership before paceman Jackson Bird struck to remove Amir for 21.
The caught behind appeal was turned down by umpire Richard Illingworth but captain Steve Smith successfully reviewed it and the technology showed the paceman had feathered an inside edge through to wicketkeeper Matthew Wade.
Amir was staggered to be given his marching orders by third umpire S Ravi.
The tailender pointed to his elbow, was sitting on the turf when given out then slowly trudged off the field, often turning his head to watch replays on the scoreboard.
Ravi was involved in the other dismissal, when Rahat Ali was run out by a direct hit from David Warner at mid-off.
Rahat's bat bounced off the turf as he slid it, with Ravi spending a long time reviewing the footage before judging the No.11 batsman short of his ground.
Sarfraz brought up his half-century and was dropped by Nic Maddinson in the deep on 51, with the keeper finishing 59 not out.
Australia haven't enforced the follow-on since trouncing West Indies by an innings and 212 runs in Hobart last summer.
- Reuters / AAP