Alexrey, put very simply you are missing one vital point which you yourself have quoted:
Residency
AS WELL AS meeting nationality requirements, you must also meet certain residency criteria to be eligible to apply for a job in the RAF.
You need to qualify under BOTH nationality and residency. Unfortunately, you don't meet the residency criteria.