2 arrested after attempted apartment robbery