A suspect is in custody after barricading himself in a second-floor unit at an apartment complex in Tempe on Thursday afternoon.