AMRAAM was used at BVR range. The shots was taken because the escorting pilot la didn’t like what their opponent was doing, getting too close to an attacking aircraft.
Even the air to ground parts were at long range, using the H4 SOW (range 120 km) and REK bombs (range <20 km).