Outbound: All of you (ABCD) are flying together on flight 123
Inbound: ABC are on flight 456, D is on flight 789
Make two bookings.
Booking one: Three passengers (ABC) flying on 123 and returning on 456
Booking two: One passenger (D) flying on 123 and returning on 789
The friend will have booked his own way onto 456.