The suspect, originally from Saudi Arabia, shared Islamophobic messages online and criticised German refugee policies.