Probing Majorana edge states with a flux qubit