Police foil murder-for-hire plot that started in jail